Commits

Anonymous committed bb7f684

KeywordAnalyzer: clarify docstring

  • Participants
  • Parent commits 2a57737

Comments (0)

Files changed (1)

File src/whoosh/analysis.py

 
 
 def KeywordAnalyzer(lowercase=False, commas=False):
-    """Parses space-separated tokens.
+    """Parses whitespace- or comma-separated tokens.
     
     >>> ana = KeywordAnalyzer()
     >>> [token.text for token in ana(u"Hello there, this is a TEST")]
     [u"Hello", u"there,", u"this", u"is", u"a", u"TEST"]
     
     :param lowercase: whether to lowercase the tokens.
-    :param commas: if True, items are separated by commas rather than spaces.
+    :param commas: if True, items are separated by commas rather than whitespace.
     """
     
     if commas: