Skip to content

Commit

Permalink
Reinstated stemming of keywords.
Browse files Browse the repository at this point in the history
Fixed out-of-date links in test feed list.
  • Loading branch information
dwdyer committed Jun 3, 2012
1 parent 98a9087 commit 083c17f
Show file tree
Hide file tree
Showing 3 changed files with 653 additions and 5 deletions.
5 changes: 3 additions & 2 deletions core/src/java/main/org/uncommons/zeitgeist/Article.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ private Map<String, Integer> countWords(String text)
{
if (word.length() > 0 && !LOW_VALUE_WORDS.contains(word))
{
Integer count = wordCounts.get(word);
wordCounts.put(word, count == null ? 1 : ++count);
String stem = new Stemmer().stem(word);
Integer count = wordCounts.get(stem);
wordCounts.put(stem, count == null ? 1 : ++count);
}
}
return wordCounts;
Expand Down
Loading

0 comments on commit 083c17f

Please sign in to comment.