TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Stemmers in ruby, any good? or should I just go ahead and write my own?

2 pointsby arindam_over 11 years ago
The most popular option seems to be https:&#x2F;&#x2F;github.com&#x2F;aurelian&#x2F;ruby-stemmer. But its kinda outdated and gives poor-ish results. &quot;why&quot; becomes &quot;whi&quot;, &quot;people&quot; becomes &quot;peopl&quot; and a lot lot many incorrect ones.<p>Something like Solr&#x27;s reduction to stems is what I was hoping for to be able to use it in my project.<p>Thinking of going for a full port of Porter&#x27;s stemming. Thoughts?

2 comments

dansoover 11 years ago
Thanks for asking this, I&#x27;d also be interested in knowing...<p>Did you try the uea-stemmer? Also pretty old: <a href="https://github.com/ealdent/uea-stemmer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ealdent&#x2F;uea-stemmer</a><p>Also, there&#x27;s the treat gem, which is an all-in-one package...it uses both the stemmer you mentioned and the uea one...so maybe that&#x27;s it for Rubyists.<p><a href="https://github.com/louismullie/treat" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;louismullie&#x2F;treat</a>
boyterover 11 years ago
<a href="https://github.com/raypereda/stemmify" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;raypereda&#x2F;stemmify</a><p>Not a Ruby guy so no idea if its any good, but it is the implementation linked from here <a href="http://tartarus.org/~martin/PorterStemmer/" rel="nofollow">http:&#x2F;&#x2F;tartarus.org&#x2F;~martin&#x2F;PorterStemmer&#x2F;</a>