39 lines
1.2 KiB
Markdown
39 lines
1.2 KiB
Markdown
|
```text
|
||
|
[[[ SYNOPSIS ]]]
|
||
|
|
||
|
anagram <action> [action arguments]
|
||
|
|
||
|
[[[ DESCRIPTION ]]]
|
||
|
|
||
|
This is anagram v0.1.1, a CLI PHP script that can anagram words and create
|
||
|
«anagram dictionaries» based on input dictionaries.
|
||
|
Dictionaries need to be text files with one word per line, like those you can
|
||
|
find inside the included «dicts.zip» file.
|
||
|
You can create other dictionaries with the «aspell» tool (http://aspell.net/)
|
||
|
by running «aspell -d <langcode> dump master», possibly piping its output
|
||
|
into «aspell -l <langcode> expand 4», and doing some cleanup with «grep»,
|
||
|
«sed» and the likes.
|
||
|
|
||
|
[[[ ACTIONS ]]]
|
||
|
|
||
|
search <word> <dictionary file>
|
||
|
Search for possible anagrams of «word» into «dictionary file».
|
||
|
|
||
|
combine <word>
|
||
|
Print all possible combinations of characters in «word».
|
||
|
|
||
|
genadict <dictionary file> <output file>
|
||
|
Use «dictionary file» to generate an «anagrams dictionary» and save it into
|
||
|
«output file».
|
||
|
|
||
|
help
|
||
|
Show this help text and exit. Requires no arguments.
|
||
|
|
||
|
[[[ DISCLAIMER AND LICENSE ]]]
|
||
|
|
||
|
This program comes with ABSOLUTELY NO WARRANTY; for details see the source.
|
||
|
This is free software, and you are welcome to redistribute it under certain
|
||
|
conditions; see <http://www.gnu.org/licenses/> for details.
|
||
|
|
||
|
```
|