mozilla-b2g/gaia — pull request #5663 by davidflanagan (2012-10-03 19:03:51+00:00)
Title: Bug 797176 - don't limit suggestions for capitalized words

This is a fix for https://bugzilla.mozilla.org/show_bug.cgi?id=797176

The predictive text ranking algorithm was giving a lot of bonus points for matching the case of the initial letter. And since the keyboard automatically capitalizes the first letter of a sentence, it was only offering suggestions for proper nouns.

Ideally, we'd have some way to treat the start-of-sentence case differently from explicitly-selected-capital letter case, but for now, I've just removed the case matching bonus, and then explicitly capitalized the suggested words if the input begins with a capital letter.