We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
WHAT I want this project to do (or not do)
Add a function that takes a string and returns a bool representing whether or not the word is an English word.
WHY I want this project to have this feature
This is a common use-case and one that would be helpful to provide a good interface for.
HOW we might implement this feature
There are 3rd party libraries for this we could use. I suggest a function signature that looks like:
def is_valid_english_word(word: str) -> bool: ...
Later iterations may specify a dictionary of words to be used:
def is_valid_english_word(word: str, *, dictionary: Optional[Iterable[str]]) -> bool: ...
And, perhaps, this function could be generalized to support more languages than english like:
def is_valid_word(word: str, *, dictionary:Iterable[str]) -> bool: ...
or
def is_valid_word(word: str, *, language: str, dictionary: Optional[Iterable[str]]) -> bool: ...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
WHAT I want this project to do (or not do)
Add a function that takes a string and returns a bool representing whether or not the word is an English word.
WHY I want this project to have this feature
This is a common use-case and one that would be helpful to provide a good interface for.
HOW we might implement this feature
There are 3rd party libraries for this we could use. I suggest a function signature that looks like:
Later iterations may specify a dictionary of words to be used:
And, perhaps, this function could be generalized to support more languages than english like:
or
The text was updated successfully, but these errors were encountered: