Merge: Count last word when calculating most frequent words
Not that it really matters.
This commit is contained in:
parent
69d9b01b6e
commit
07296b4506
1 changed files with 5 additions and 0 deletions
|
@ -1350,6 +1350,11 @@ Zotero.Items = function() {
|
|||
currentWord += codePoint.toLowerCase();
|
||||
}
|
||||
}
|
||||
|
||||
// Add remaining word, if any
|
||||
if (currentWord.length > 3) {
|
||||
freqs.set(currentWord, (freqs.get(currentWord) || 0) + 1);
|
||||
}
|
||||
|
||||
// Break ties in locale order.
|
||||
return [...freqs.keys()]
|
||||
|
|
Loading…
Reference in a new issue