jedp / porter-stemmer

Martin Porter's stemmer for node.js
MIT License
99 stars 15 forks source link

Small performance cache improvement #6

Open bwbroersma opened 6 years ago

bwbroersma commented 6 years ago

Small performance improvement, by also caching/memoize the stemmed output as input. So when stemming banks which stems to bank it will also cache bank as input. This is a speed over memory decision, and will cache 'useless' stemmed output as input like acknowledg.