#15889 closed enhancement (fixed)
'spelled like' operator
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 18.10 |
Component: | Core | Version: | |
Keywords: | Cc: |
Description
It would be useful to be able to write validation rules that checked for misspellings of a given word. spelledLike("Street") could match strings like "Steet" or "Sreet".
It's currently possible to do this just by creating all the possibilities, which is pretty tedious.
Attachments (0)
Change History (8)
comment:1 by , 7 years ago
Owner: | changed from | to
---|---|
Status: | new → needinfo |
comment:2 by , 7 years ago
I'd like to be able to use mapcss to specify words to check in arbitrary tag values (like names). Quite a few people make minor typos. A full dictionary doesn't make any sense but checking for values that are similar to frequently used words (like Street, Avenue, School, etc) would be useful.
comment:4 by , 6 years ago
Milestone: | → 18.10 |
---|
comment:5 by , 6 years ago
SimilarNamedWays.getLevenshteinDistance
should be deprecated rather than removed. I'm almost sure some plugins are using it.
comment:8 by , 6 years ago
Done: https://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation?action=diff&version=149
Please correct/enhance if necessary.
We already have a validator spell checker function. Why do you need additional spell checker?