What Cerebro does
The app "Cerebro" predicts the most likely next word as the text is being typed. For example, if you type Fedor's app is the, it'll guess that the next word should be best.
Input
Enter a phrase and wait a second or two.
Output
Two versions of output: the most probable next word according to Cerebro's caculations and the top five words that are most likely to be the next one together with their probabilities.
How Cerebro works
For three words A, B, C, we calculate the probability that C follows A and B in a phrase. The calculations are based on counting unigrams (words), bigrams (pairs of words) and trigrams (triples of words) in a large body of text.
Given a phrase, we identify 60 natural candidates for the next word - 30 most frequent words overall and 30 most frequent words that follow the last word in the phrase. Then we calculate the probability of each of the 60 candidates and output the five most likely ones.