This repository depends on the pandas and numpy libraries. If you do not have them already installed. Run the following:
pip install numpy
pip install pandas
Or with virtualenv:
virtualenv anagramEnv
source anagramEnv/bin/activate
pip install -r requirements.txt
Clone the repository from github with the following:
git clone https://github.com/npcasler/anagram.git
cd anagram
make install
Or use python setup script:
python setup.py install
AnagramTest - This test will aggregate the example american-english dictionary and generate a CSV with the anagram permutations for words with 4 or more letters and at least as many permutations as its characters.
For the default test run:
anagram
To use this application on a different dictionary or to change the output file path run the following
anagram -i {input_dict} -c {count} -o {output_csv}
- input_dict - Path to input dictionary file
- count - Minimum letter count needed for a word to be included
- output_csv - Path for output CSV
- afrikaans : Sample dictionary file of Afrikaans words
- american-english : Sample English dictionary
- british-english : Sample British English dictionary
- czech : Sample Czech dictionary
- danish : Sample Danish dictionary
- finnish : Sample Finnish dictionary
- german: Sample German dictionary
- mixed : Mixed case English dictionary
- Nathan Casler - Initial Commits