MCPcopy Create free account
hub / github.com/geekcomputers/Python / word_exists

Method word_exists

Word_Dictionary/dictionary.py:16–22  ·  view source on GitHub ↗
(self, word: str)

Source from the content-addressed store, hash-verified

14 node["is_word"] = True
15
16 def word_exists(self, word: str) -> bool:
17 node = self.node
18 for ltr in word:
19 if ltr not in node:
20 return False
21 node = node[ltr]
22 return "is_word" in node
23
24 def list_words_from_node(self, node: Dict, spelling: str) -> None:
25 if "is_word" in node:

Callers 1

dictionary.pyFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected