openfoodfacts/openfoodfacts-server
View on GitHubSpellcheck for ingredients, additives and other taxonomies, auto correct spelling mistakes and/or make suggestions
Open
#1,317 opened on Aug 9, 2018
Can be done by RobotoffSpellcheckhelp wanted
Repository metrics
- Stars
- (477 stars)
- PR merge metrics
- (Avg merge 15d 21h) (157 merged PRs in 30d)
Description
What
- I started to implement a brute force approach for spellchecking ingredients, additives and anything we have a taxonomy of.
- For each word / group of words that we want to taxonomize, if it's not in the taxonomy, we generate a list of correction candidates: the initial string with inserted, deleted or replaced letters.
- To avoid false positives, I'm just considering candidates with an edit distance of 1 at this point.
- This spellchecker could be used either for auto-correction (when we are close to 100% sure), spelling suggestions (which would require an easy to use interface for the web edit form and the mobile apps, see bug #937).