An open API service indexing awesome lists of open source software.

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

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
```