Mechanical Edits/Mateusz Konieczny - bot account/elimination of nonprintable characters at start or end of tags

From OpenStreetMap Wiki
Jump to navigation Jump to search

Page content created as advised on Automated_Edits_code_of_conduct#Document_and_discuss_your_plans.

Some tags contains invisible nonprintable characters. See https://github.com/openstreetmap/iD/issues/5895 for an example.

Who

I, Mateusz Konieczny using my bot account

contact

message via OSM I will respond also to PMs to the bot account, though messaging my main account is preferable as I will get notifications in OSM editors.

English and Polish languages are preferable, for other I need to use an automatic translator.

What

Editing is restricted to tags that start or end with invisible character and after fixing it tag will be one of standard and recognized tags.

Why

Nonprintable characters are not wanted in tags. Their removal reduces confusion, which is significant as nonprintable characters in such context are obnoxious.

Numbers

Depends on how many new ones are added by editors.

How

  • Each changeset contains a single element or group of close elements to avoid edits spanning across large areas (it is impossible in cases where edited object itself spans very large area)
  • After every changeset bot sleeps for one minute

Changeset would be described and tagged with tags that mark it as automatic, provide link to documentation page etc

Discussion

Not necessary, fits "correcting obvious typos" that does not require discussion.

Repetition

This is reoccurring edit and may be made as soon as new matching elements appear. At this moment triggering new edit requires human intervention so exact schedule is not predictable and bot may stop running at any moment.

This can change in a future. If bot is abandoned and does not run, feel free to ping me. If I am unable to run it any more feel free to use my code. Note that it may require going through bot approval process again and that code is on specific license.

https://codeberg.org/matkoniecz/OpenStreetMap_cleanup_scripts/src/branch/master/recurrent_bot_edits may have more up to date code version that what is listed on this page

Opt-out

Please comment at Talk:Mechanical Edits/Mateusz Konieczny - bot account/elimination of nonprintable characters at start or end of tags and send PM via OSM messaging system.