View Source AhoCorasearch.WordSearch (AhoCorasearch v0.3.0)

WordSearch enables a more refined search mechanism that takes into account full words.

For example "Earphones and pinecones" using the regular(faster) function will match(depending on settings and input): ["ear", "phone", "earphone", "and", "pine", "cone", "cones", "pinecone", "pinecones"]. Which might be what you want. This module will help if what you'd expect to match is ["earphones", "and", "pinecones"](assuming all those words are in your tree).

It's a slower search method than the regular search, by a reasonable factor.