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

Add NearestWords #250

Open
dishmint opened this issue Jan 13, 2023 · 3 comments
Open

Add NearestWords #250

dishmint opened this issue Jan 13, 2023 · 3 comments
Assignees
Labels
request New feature request

Comments

@dishmint
Copy link
Owner

dishmint commented Jan 13, 2023

NearestToken[word_] := Alternatives@@Nearest[WordList[], word, 10]
NearestToken[word_, n_] := Alternatives@@Nearest[WordList[], word, n]

A nearest token would match some default, or some specified, number of similar words.

@dishmint dishmint self-assigned this Jan 13, 2023
@dishmint
Copy link
Owner Author

Could also be called LexicallyCloseTo

LexicallyCloseTo["happy"]
LexicalCases[source, "I"~~TextType["Verb"]~~LexicallyCloseTo["happy"]]

@dishmint dishmint changed the title Consider Adding NearestToken Add NearestWords Jan 17, 2023
@dishmint dishmint added investigate request New feature request and removed investigate labels Nov 8, 2023
@dishmint
Copy link
Owner Author

dishmint commented May 6, 2024

Wait — this is an orthographic focus — words with similar spellings. So maybe NearestSpelling["word"]?

@dishmint
Copy link
Owner Author

dishmint commented May 6, 2024

Thus — not an important feature at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request New feature request
Projects
Status: Backlog
Development

No branches or pull requests

1 participant