t9

1.0.5 • Public • Published

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');

Readme

Keywords

none

Package Sidebar

Install

npm i t9

Weekly Downloads

8

Version

1.0.5

License

MIT

Last publish

Collaborators

  • grant