Skip to content

Latest commit

 

History

History
24 lines (15 loc) · 859 Bytes

README.md

File metadata and controls

24 lines (15 loc) · 859 Bytes

#Kwibuka

Kwibuka is a library for generating mnemonics from telephone numbers. It works by using a word list to find all the possible sequences of words and digits for a given number sequence. Then it ranks them given highest scores to sequences with long words, and returns the sequences sorted from best to worst score.

For example, the number 0783835665 can be typed on a phone keypad as 0-steve-look or 0-queue-look or 0-st-eve-look etc.

##Usage

First initialize a wordifier with word list. You can find many free word lists online:

Wordifier wordifier = Wordifier.fromWordlist(new FileReader("myword.list"));

Then you can wordify a number:

List<WordSequence> sequences = wordifier.wordify("0783835665");
for (WordSequence sequence : sequences) {
	System.out.println(sequence.format());
}

##Licence

GNU General Public License version 3