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 artificial misspelling #3

Open
huertanix opened this issue Jan 3, 2010 · 0 comments
Open

Add artificial misspelling #3

huertanix opened this issue Jan 3, 2010 · 0 comments

Comments

@huertanix
Copy link
Owner

Users will occasionally misspell their search terms, so there should be a function that will take in a string and swap out a random selection of characters within a "reasonable" range of randomness. The function should have a higher chance of swapping characters for other characters physically near them on a US keyboard, which should cover most spelling errors, with a small chance of truly random character swapping to cover the possibility of a user spelling error that falls outside the close-key algorithm.

I have no idea what to do if people are incredibly horrible spellers and add more letters or get it totally wrong. They get a free ride in the FBI party van I guess.

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