1.0.5 • Published 7 years ago

t9 v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
7 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

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago