text-prediction
v1.0.2
Published
A library for simple text prediction. Not very advanced.
Downloads
8
Readme
text-prediction
An NPM module for predicting the next word(s) for text.
Functions
tokenize - Tokenizes the text parameter (a string)
predictNextWord - Predicts the next word from an array of words and a data array
predict - Predicts all the next words from a string (parameter text), a data array, and an optional amount of words
The data array
An array of strings that are used as data for text prediction.
