[OSM-talk] spellchecking keynames
Jonas Svensson
jonass at lysator.liu.se
Sat Nov 4 20:54:09 GMT 2006
I have begun writing a spellchecker for key names. The idea is
simple: I use a set of words known to be correctly or incorrectly
spelled (ie "highway" and "highawy").
I search a planet dump for incorrect keys, when found I download
the node to see if the error is still in the database, if so I
change the word and upload the corrected node. I change only words
known to be incorrectly spelled, ie no change for unknown words.
Then the program sleeps for 90 seks to keep the load of the server
down. Also because I am still testing and is trying to keep an eye
on things.
Questions on this:
1. I believe someone said that key name should always be in lower
case. I found nothing about that in the Map Features page but have
assumed that to be correct. Therefore I am changing any words that
are correctly spelled but using upper case to only use lower case.
For example I have changed "Name" to "name" and "opm:liftType" to
"opm:lifttype".
Any problem with that?
2. Should the key names always be in english or should other
languages be allowed? Ie should I let "Strasse" be as is or change
it? If they should be changed I will come back and ask for proper
translations.
So far I have changed nodes: 394499, 417365, 422905, 616743,
616744, 616745, 616746, 616753, 616754.
/Jonas
More information about the talk
mailing list