[Tagging] tagging sport=shotput or sport=shot_put?
Warin
61sundowner at gmail.com
Mon Apr 18 23:16:04 UTC 2016
On 18/04/2016 9:33 PM, Mikael Nordfeldth wrote:
> Warin 61sundowner at gmail.com wrote:
>> That has "Shot-put" ... note the dash, not an uderscore. So I am back
>> to thinking about it.
> Hi again! As I commented on the wiki talk page for "sport=shot-put"[1] I
> believe the value should be normalised to "shot_put" regardless if it's
> the English "shot-put" or American "shot put".
>
> This replacement, "-" to "_", is a typical behaviour in programming (and
> as the key=value setup isn't for humans anyway,
Err key=values is very much for humans!
If it were not then the key 'sport could become 'Sp' as there would be no need for more than 2704 keys .. similarly for values.
> I think it's logical and
> appropriate to use programming practices).
> In general it is good to avoid the "-" character in single words/phrases
> to avoid cumbersome regular expressions (where - has to be escaped) etc.
As the program would be looking for matching values (For x = 1 to y;If A(x)=B? then use symbol for soccer, exit for;next x) there is no need for an 'escape' for the - ... only a need to separate up the string by the ';' character in sport values.
> as well as special meanings ("start-finish" enumerations for example).
>
>
> Also all the tags out there, except recently changed by you,
5 off have been changed as a check
> are labeled
> "shot_put".
I have added a few more new ones
> I guess "shotput" could probably also work, but given the
> prevalence of "shot_put" I think that choice is the path of least mistyping.
>
>
> [1] https://wiki.openstreetmap.org/wiki/Talk:Tag:sport%3Dshot-put
I have placed what I think are the desired outcomes for this short on the above wiki page. I have not linked it to other pages so it is not well advertised.
I would like other people to comment on how they see this.
More information about the Tagging
mailing list