1.0.6 • Published 4 years ago

magic-words v1.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Magic-Words

magic-words is a trie implementation with json and javascript.

usage

add words with addWord and remove them with removeWord methods.

alt text

inspect trie

console.log(mw.inspectTrie());

result will be

alt text

JSON

your added strings will be stored in json file and it will be loaded everytime you start the script. it will be in node_module/magic-words/data.json. also don't forget to call mw.save() to save your file in disk after you remove or add words.

alt text

did you mean?

you can autocomplete added words by calling didyoumean method. it will return array of autocompleted words.

alt text

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago