MCPcopy Index your code
hub / github.com/clips/pattern / _normalize

Method _normalize

pattern/text/search.py:271–275  ·  view source on GitHub ↗
(self, term)

Source from the content-addressed store, hash-verified

269 self.classifiers = []
270
271 def _normalize(self, term):
272 try:
273 return not self.case_sensitive and term.lower() or term
274 except: # Not a string.
275 return term
276
277 def __contains__(self, term):
278 # Check if the term is in the dictionary.

Callers 6

__contains__Method · 0.95
appendMethod · 0.95
classifyMethod · 0.95
parentsMethod · 0.95
childrenMethod · 0.95
valueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected