Skip to content

aiham/AnagramSolver

Repository files navigation

Note: Not maintained

AnagramSolver

AnagramSolver is a command line program that solves word puzzles including anagrams.

Requirements

Installation

git clone https://github.com/aiham/AnagramSolver.git
cd AnagramSolver
./setup.sh

Usage

  ./anagram <command or alias> [argument ...]

----------------------------------------------------------------------------------------------------
| Command    | Alias  | Arguments    | Description                                                 |
----------------------------------------------------------------------------------------------------
| solve      | -s     | anagram      | Solve the anagram <anagram>.                                |
| solveall   | -a     | anagram      | Solve the anagram <anagram> including shorter anagrams.     |
| solvesize  | -z     | letters size | Solve an anagram of size <size> from the letters <letters>. |
| combo      | -m     | word         | List unique combinations of letters in <word>.              |
| combocount | -n     | word         | Count unique combinations of letters in <word>.             |
| contain    | -c     | word         | List all words that contain <word>.                         |
| begin      | -b     | word         | List all words that begin with <word>.                      |
| end        | -e     | word         | List all words that end with <word>.                        |
| word       | -w     | word         | Verify whether <word> is in English dictionary.             |
| anagrams   | -g     | word1 word2  | Verify whether <word1> and <word2> are anagrams.            |
| help       | -h, -? |              | Display this help screen.                                   |
| examples   | -x     |              | Display a list of examples of how to use this program.      |
----------------------------------------------------------------------------------------------------

Examples

  ./anagram solve enstdtu

      1. student
      2. stunted
  ./anagram solveall kcab

       1. back
       2. k
       3. c
       4. b
       5. a
       6. ka
       7. ca
       8. ab
       9. ba
      10. bac
      11. cab
  ./anagram combo man

      1. amn
      2. anm
      3. man
      4. mna
      5. nam
      6. nma
  ./anagram combocount man

      6
  ./anagram combocount magnificent

      9979200
  ./anagram contain mountainous

      1. mountainous
      2. mountainously
      3. mountainousness
      4. nonmountainous
      5. unmountainous
  ./anagram begin mountainous

      1. mountainous
      2. mountainously
      3. mountainousness
  ./anagram end mountainous

      1. mountainous
      2. nonmountainous
      3. unmountainous
  ./anagram word mysterious

      Yes
  ./anagram word abcdef

      No
  ./anagram anagrams family ymailf

      Yes
  ./anagram anagrams family tree

      No

Dictionary

If you want to use a different dictionary, create a text file with each word on a new line and update the filename in config.json.

About

Command line program that solves word puzzles including anagrams

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors