osmose-backend icon indicating copy to clipboard operation
osmose-backend copied to clipboard

Add additional typos and incorrect formatting (malformed tags)

Open danieldegroot2 opened this issue 2 years ago • 0 comments

(Incorrect capitalization check may already be implemented)

Fix short keys

Example Key “a” (combinations mean “aa”, “ab”, ..)

Find suspicious keys (any character(s) + combinations if possible)

All optional steps.

  • Find suspicious keys as above
  • Subtract known keys
  • Find known values of known keys
  • Find known keys for given character(s)
  • Compare (AND)
  • Suggest tag(s)
  • For unknown keys, suggest some known tag where possible [ie. “source” allows any value]

Example “s”=”cobblestone” => ex. “surface”=”cobblestone”

(Unknown keys like “x” and “y” as used for coordinates can have a resolution determined through a MR-task)

Query examples (not for osmose):

  • nwr[~"[a-z0-9]"~".", i]({{bbox}});
  • nwr[~"[a-z0-9]{12}"~".", i]({{bbox}});

Fix short values

Example Tag “”=”a” (combinations mean “”=”aa”, “*”=”ab”, ..)

Find suspicious values (any character(s) + combinations if possible)

All optional steps.

  • Find suspicious values as above
  • Subtract known keys which allow said values
  • Find known values for given character(s)
  • Suggest tag(s)

Example “surface”=”c” => ex. “surface”=”c”

Query example (not for osmose): nwr[~"."~"[a-z0-9]", i]({{bbox}});

Fix incorrect capitalization

Find suspicious keys and values (any capital letter combo if possible)

All optional steps.

  • Find suspicious keys and values as above
  • Substract known keys which allow said values
  • Prioritize values, as well as keys which start with capital letter
  • Suggest tag(s)

Example Key “Amenity” => “amenity” Example Value “amenity”=”School” => “amenity”=”school”

If any of these checks are completely out of scope for Osmose, let me know, so I may document them elsewhere I may create a MapRoulette challenge for the single-character keys (I may also do some manual research in advance for this).

danieldegroot2 avatar May 02 '22 14:05 danieldegroot2