Modify

Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#15889 closed enhancement (fixed)

'spelled like' operator

Reported by: maxerickson@… Owned by: maxerickson@…
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 stoecker, 7 years ago

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 by maxerickson@…, 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:3 by simon04, 6 years ago

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 by simon04, 6 years ago

Milestone: 18.10

comment:5 by Don-vip, 6 years ago

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

comment:6 by simon04, 6 years ago

In 14373/josm:

see #15889 - deprecate SimilarNamedWays.getLevenshteinDistance

comment:7 by Klumbumbus, 6 years ago

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

Modify Ticket

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

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.