No description
If the "must contain" (rs) set had too many uses of a character, the initial letter counts (ww) could be nonsense. Now, if you do a bogus search like `munmunii -- iii` (commandline) or `munmun =iii` (web), you'll get 0 results. (it'll somewhat confusingly report that it reached a max of 0 searches, but so be it) Closes #1 |
||
|---|---|---|
| .gitignore | ||
| ana.1 | ||
| ana.html | ||
| anagram.js | ||
| dictfilt.py | ||
| import | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| run.cc | ||
| webapp.py | ||
Build instructions:
make
Use instructions:
./ana terms...
man ./ana.1 ;# for help
Binary dictionaries
These start a bit faster than reading the system dictionary.
Build one with
./ana -D dict.bin -d /usr/share/dict/words
then use it with
./ana -D dict.bin terms...
Python use
$ python3
>>> import ana
>>> d = ana.from_binary("dict.bin")
>>> for row in d.run("hello world"):
... print(row)
Web Browser Version (WASM/js)
-
Compile with emscripten (tested with the version in debian bookworm):
make ana.js -
Test it to your satisfaction using a local html server:
python3 http.server & -
Commit it:
make publish -
Push it to github:
git push origin gh-pages