1.0.5 • Published 8 years ago

t9 v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

T9 Predictive Search • t9

T9, which stands for Text on 9 keys, is a predictive text technology for mobile phones (specifically those that contain a 3x4 numeric keypad), originally developed by Tegic Communications, now part of Nuance Communications.

image

Install

yarn add t9

Usage

var T9Search = require('t9');
var words = ['cat', 'bot', 'catapult', 'foo'];
var t9 = new T9Search();
t9.setWords(words);

var prediction = t9.predict('2');
console.log(prediction); // ['cat', 'catapult']

Tip

Include the english dictionary:

var words = require('an-array-of-english-words');
1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago