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

Method spelling

pattern/web/__init__.py:1370–1375  ·  view source on GitHub ↗

Returns a list of spelling suggestions for the given string.

(self, string)

Source from the content-addressed store, hash-verified

1368 return u(data)
1369
1370 def spelling(self, string):
1371 """ Returns a list of spelling suggestions for the given string.
1372 """
1373 s = self.answer("spell " + string, cached=True)
1374 s = re.findall(r"<a.*?>(.*?)</a>", s)
1375 return s
1376
1377 def definition(self, string):
1378 """ Returns a dictionary definition for the given string.

Callers

nothing calls this directly

Calls 1

answerMethod · 0.95

Tested by

no test coverage detected