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 spell checking #12

Open
nicolasbotanic opened this issue Oct 30, 2018 · 0 comments
Open

Add spell checking #12

nicolasbotanic opened this issue Oct 30, 2018 · 0 comments

Comments

@nicolasbotanic
Copy link
Collaborator

This process should be binded to .Flow v2 instruction $spellcheck inside /engine/dotflow2/extensions/preprocess.py file

It will expect one mandatory argument with a string with the text to be spell-checked and an optional second argument with a list of expected words to narrow the spell correction.

Expected response:

$ BBOT_ENV=development python -m channels.console.app joe testbot 1 nodebug

You: :df2 spellcheck("I'm asd")
Testbot: I'm sad

You :df2 spellcheck("I'm asd", ["asd", "etc"])
Testbot: I'm asd

Note in the second example "asd" was not corrected to "sad" because "asd" is an expected string

@nicolasbotanic nicolasbotanic changed the title Add spell checking support Add spell checking Oct 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant