Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get words that start with X #79

Open
poochie89 opened this issue Aug 12, 2023 · 1 comment
Open

Get words that start with X #79

poochie89 opened this issue Aug 12, 2023 · 1 comment
Labels

Comments

@poochie89
Copy link

Is there a way to get all the words that start with a specific string?

@aarondandy
Copy link
Owner

aarondandy commented Aug 14, 2023

I think there is an unmuch tool in the upsteam project that may be related, but I have never used it so I can't say. This is fairly similar to issue #1, so maybe that has some inspiration for you. Using this library, my best guess would be to build a list of candidate words and then check them all to verify and weed some out. I'm sure there are smarter ways to do this, but maybe you could brute force that list from the following sources:

  • all root words starting with X: dictionary.RootWords starting with X
  • combinatorial of roots and suffixes: dictionary.RootWords starting with X combined with all dictionary.Affix.Suffixes
  • combinatorial of prefixes and roots: doctionary.Affix.Prefixes starting with X combined with all dictionary.RootWords

This will probably not include any compound words and a bunch of other cases I haven't thought of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants