Commit 37d6d621 by Rick Wood

Revert "Decrease length requirement for phrases"

This reverts commit 628422cf.
parent 628422cf
......@@ -449,9 +449,9 @@ tsApp
for (var i = 0; i < words.length; i++) {
for (var j = i + 1; j <= words.length; j++) {
var phrase = words.slice(i, j).join(' ');
// a phrase must be more than 3 chars and no start/end words that are
// a phrase have at least 5 chars and no start/end words that are
// purely punctuation
if (phrase.length > 3 && words[i].match(/.*[A-Za-z0-9].*/)
if (phrase.length > 5 && words[i].match(/.*[A-Za-z0-9].*/)
&& words[j - 1].match(/.*[A-Za-z0-9].*/)) {
phrases.push(phrase.toLowerCase());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment