/anagram

Fun anagram ranking tool for golang

Primary LanguageGoMIT LicenseMIT

Anagram

A fun anagram ranker for golang, inspired by this post by Mark Dominus:

Anagram Scoring

Supports Levenshtein and Hamming string distance functions.

Usage

anagram [command]

Available Commands:
  find        Find anagrams
  help        Help about any command
  rank        Rank anagrams

Flags:
      --config string   config file (default is $HOME/.anagram.yaml)
      --friendly        chomp and uniq the input (default true)
      --words string    dictionary file (one word per line)

Examples

Using wordlists downloaded from KeithV's Big English Word Lists

Find anagrams

$ anagram find --words wlist_match10.txt
$ cat wlist_match{8..10}.txt | anagram find

Rank anagrams

$ anagram rank --words wlist_match10.txt
$ cat wlist_match{8..10}.txt | anagram rank