Opened 2 years ago

Closed 20 months ago

Last modified 19 months ago

#15889 closed enhancement (fixed)

'spelled like' operator

Reported by: maxerickson@… Owned by: maxerickson@…
Priority: normal Milestone: 18.10
Component: Core Version:
Keywords: Cc:


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 Changed 2 years ago by stoecker

Owner: changed from team to maxerickson@…
Status: newneedinfo

We already have a validator spell checker function. Why do you need additional spell checker?

comment:2 Changed 2 years ago by maxerickson@…

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:3 Changed 20 months ago by simon04

Resolution: fixed
Status: needinfoclosed

In 14371/josm:

fix #15889 - add MapCSS function is_similar

This function tests if two strings are similar. Logic extracted from SimilarNamedWays validation test.

comment:4 Changed 20 months ago by simon04

Milestone: 18.10

comment:5 Changed 20 months ago by Don-vip

SimilarNamedWays.getLevenshteinDistance should be deprecated rather than removed. I'm almost sure some plugins are using it.

comment:6 Changed 20 months ago by simon04

In 14373/josm:

see #15889 - deprecate SimilarNamedWays.getLevenshteinDistance

comment:7 Changed 20 months ago by Klumbumbus

Could you please document it at wiki:/Help/Styles/MapCSSImplementation?

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain maxerickson@….
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.