-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add deprecation rules for typos in sidewalk-related tags #1278
Conversation
@waldyrious thanks for the PR and the indirect ping on #222 which I just merged. Here are a few unsorted thoughts on this PR:
But most importantly…
Lets wait for input from others on this first. And lets look at some numbers as well. |
4921258
to
3dfa0d9
Compare
@tordans thanks for the review. I've extracted the indentation fixes to #1282, and rebased this PR following the merge of #222. As for the prevalence of these values: I recently fixed a bunch of typos in the values for the That said, I'm happy to heed any consensus that might emerge form additional community discussion. |
Thanks for the update. I don't see any relevant reason to not merge this. Will wait for a bit for some feedback and merge in a few days. There might be better solutions for the |
🍱 You can preview the tagging presets of this pull request here. |
I don't think the addition of |
Similarly, the rule for the value IMO, the list of deprecated tags is not meant to include every possible typo imaginable (otherwise the list would be unbearably long). |
See https://codeberg.org/matkoniecz/OpenStreetMap_cleanup_scripts/src/branch/master/recurrent_bot_edits/surface_fix_bad_values.py or https://codeberg.org/matkoniecz/OpenStreetMap_cleanup_scripts/src/branch/master/recurrent_bot_edits/shops_fix_bad_values.py for how it would end looking like :) (approved bot edits, currently not running due to oauth2, all this tags existed in OSM at some point) |
Just FYI, I too don't think listing every typo imaginable is a good strategy. My motivation to mark "seperate" as a typo was to (hopefully) prevent iD from suggesting it to people, because it was precisely common enough that it was indeed being suggested in the dropdown for the sidewalk tag.
I'm not sure I understand what you mean by "less than a dozen times each". Here are the top entries that I see in taginfo at the time of writing:
I suspect things might have been cleaned up shortly before when you looked at the stats — which, if that's the case, shows how prevalent that typo is given that it's already sprung back up this much since your comment and reinforces (IMHO) the need for a deprecation rule. If this is not the right mechanism to at least prevent iD from encouraging popular typos to spread out even further, can you point me in the right direction to ensure certain key-value combinations are not shown in the tag dropdowns? |
@waldyrious iD/Rapid will always show a list of most used taginfo values. The cut of rules for that are specified in the iD codebase AFAIK. The only way to work around this AFAIK is to set
But this will only work when there is a preset and field specified which we don't have for many of those cases. AFAIK there is no warning system for typos in tag keys and tag values in general. I suggest to open a issue in the iD repo so we can collect a cases that would work for this, like maybe |
I have https://codeberg.org/matkoniecz/OpenStreetMap_cleanup_scripts/src/branch/master/script_assisted_cleanup/obviously_mistagged_tags_using_trivial_tag_fixes.py and https://codeberg.org/matkoniecz/OpenStreetMap_cleanup_scripts/src/branch/master/script_assisted_cleanup/obviously_mistagged_tags_using_wrong_keys.py that detect some obvious typos So far they do it using iD presets, but found more typos than I can process in my free hobby time. If anyone would be interested in helping (and by "helping" I do not mean "blindly mass retag", rather "carefully investigate and retag or make bot edit where it is obvious") and what is in the repo is not making clear how it can be done then feel free to ping me via codeberg issues at that repo or by https://www.openstreetmap.org/message/new/Mateusz%20Konieczny Or just steal ideas from there :) |
@tordans Thanks for the context and pointers! That said, I'm still not sure why there's reluctance to use the existing mechanism of deprecation for common, recurrent typos. (Again, I'm not suggesting a full listing of every possible typo regardless of their tendency to show up organically, only those that do keep popping up, as seems to be the case with "seperate"). |
sidewalks=*
→sidewalk=*
sidewalk:*=none
→sidewalk:*=no
(subkey variants in addition to the existing rule from add "sidewalk=none" to list of deprecated tags #222)sidewalk=seperate
→sidewalk=separate
(plus subkey variants)p.s. - Also fix indentation errors inExtracted to #1282data/deprecated.json
.