def KeywordAnalyzer(lowercase=False, commas=False):
 if commas:
  tokenizer = CommaSeparatedTokenizer()
 else:
  tokenizer = SpaceSeparatedTokenizer()
 if lowercase:
  tokenizer = (tokenizer | LowercaseFilter())
 return tokenizer

def KeywordAnalyzer ( lowercase = False , commas = False ) : if commas : tokenizer = CommaSeparatedTokenizer ( ) else : tokenizer = SpaceSeparatedTokenizer ( ) if lowercase : tokenizer = ( tokenizer | LowercaseFilter ( ) ) return tokenizer
parses whitespace- or comma-separated tokens .