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

Method _known

pattern/text/__init__.py:1766–1769  ·  view source on GitHub ↗

Returns the given list of words filtered by known words.

(self, words=[])

Source from the content-addressed store, hash-verified

1764 return set(e2 for e1 in self._edit1(w) for e2 in self._edit1(e1) if e2 in self)
1765
1766 def _known(self, words=[]):
1767 """ Returns the given list of words filtered by known words.
1768 """
1769 return set(w for w in words if w in self)
1770
1771 def suggest(self, w):
1772 """ Return a list of (word, confidence) spelling corrections for the given word,

Callers 1

suggestMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected