Skip to content

Feature request: add method to get all valid words within a given string #9

@gonzedge

Description

@gonzedge

As mentioned by @darkogj on Twitter, there is no current way to find out if a given string contains a valid word from a given dictionary. In @darkogj's words:

... The challenge is, if you have 'aheyb' as the target word, for the gem to recognize 'hey' is a word although it's not at the beginning of the string.

I made a short implementation of this for uncompressed tries, but it hasn't been thoroughly tested or benchmarked and it isn't compatible with compressed tries. Those need to be taken care of before integrating it into the gem.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions