https://github.com/johnny-morrice/anagram
Fun anagram ranking tool for golang
https://github.com/johnny-morrice/anagram
anagrams golang string-distance
Last synced: 9 months ago
JSON representation
Fun anagram ranking tool for golang
- Host: GitHub
- URL: https://github.com/johnny-morrice/anagram
- Owner: johnny-morrice
- License: mit
- Created: 2017-04-29T09:38:34.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-29T14:13:43.000Z (about 9 years ago)
- Last Synced: 2025-06-21T04:37:16.871Z (about 1 year ago)
- Topics: anagrams, golang, string-distance
- Language: Go
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Anagram
A fun anagram ranker for golang, inspired by this post by Mark Dominus:
[Anagram Scoring](http://blog.plover.com/2017/02/21/#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](http://www.keithv.com/software/wlist/)
### 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
```