1
0
Fork 0
forked from Jones/anagram
A CLI PHP script that can anagram words and create «anagram dictionaries» based on input dictionaries.
Find a file
2024-12-31 07:42:07 +01:00
anagram In “search” mode, if no anagram is found, return nothing; other minor changes 2024-12-31 07:41:47 +01:00
dicts.zip First commit 2024-12-31 06:45:00 +01:00
makedicts.sh First commit 2024-12-31 06:45:00 +01:00
README.md Updated to help text as in commit cf617d5 2024-12-31 07:42:07 +01:00

[[[ SYNOPSIS ]]]

 anagram <action> [action arguments]

[[[ DESCRIPTION ]]]

 This is anagram v0.1.2, 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.