Skip to content

Commit

Permalink
Orthograph Check - OSMOSE 5010 (#635)
Browse files Browse the repository at this point in the history
* Orthograph Check - OSMOSE 5010

* OSMOSE 5010 Orthograph Check

Co-authored-by: Elaine Shum <[email protected]>
  • Loading branch information
elaineseattle and Elaine Shum authored Dec 8, 2021
1 parent eb41b22 commit 85615cf
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/checks/invalidTagsCheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ This way [id:26830712] https://www.openstreetmap.org/way/26830712 contains ';'
This way [id:919752321] https://www.openstreetmap.org/way/919752321 contains '+'
This node [id:6357413076] https://www.openstreetmap.org/node/6357413076 contains invalid tag "neme"
This way [id:264272613] https://www.openstreetmap.org/way/264272613 contains invalid tag "fixeme"
This way [id:160246542] https://www.openstreetmap.org/way/160246542 contains invalid word "Eglise"
This way [id:113778981] https://www.openstreetmap.org/way/113778981 contains all uppercase
#### Code Review

In [Atlas](https://github.com/osmlab/atlas), OSM elements are represented as Edges, Points, Lines, Nodes, Areas & Relations; in our case, we’re are looking at
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,36 @@
"regex": ["\\+"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The edge tag: {0} contains encoding problem `, please verify if single quote \u0027 should be used instead of `.",
"regex": ["`"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The edge tag: {0} contains 2 or more consecutive words with all caps.",
"regex": ["[A-Z]{3}\\s[A-Z]"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The edge tag: {0} contains all caps in one word.",
"regex": ["[A-Z]{6}"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The edge tag: {0} contains initials stuck to the name, consider adding space after the initial.",
"regex": ["[A-Z]{1}[.][A-Z]{2}"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The edge tag: {0} contains too many spaces.",
"regex": ["\\s{3}"],
"tagNames": ["name"],
"exceptions": []
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,60 @@
"with"
],
"exceptions": []
}
},
{
"instruction": "The tag: {0} contains badly written word etang, please verify if accent and capital first letter \u00C9tang should be used instead.",
"regex": ["(?i)etang "],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The tag: {0} contains badly written word ecole, please verify if accent and capital first letter should be \u00C9cole used instead.",
"regex": ["(?i)ecole"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The tag: {0} contains badly written word eglise, please verify if accent and capital first letter \u00C9glise should be used instead.",
"regex": ["(?i)eglise"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The tag: {0} contains cimetiere word not found in dictionary, please verify if accent and capital first letter cimeti\\u00E8re should be used instead.",
"regex": ["(?i)cimetiere"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The tag: {0} contains encoding problem `, please verify if single quote \u0027 should be used instead of `.",
"regex": ["`"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The tag: {0} contains 2 or more consecutive words with all caps.",
"regex": ["[A-Z]{3}\\s[A-Z]"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The tag: {0} contains all caps in one word.",
"regex": ["[A-Z]{6}"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The tag: {0} contains initials stuck to the name, consider adding space after the initial.",
"regex": ["[A-Z]{1}[.][A-Z]{2}"],
"tagNames": ["name"],
"exceptions": []
},
{
"instruction": "The tag: {0} contains too many spaces.",
"regex": ["\\s{3}"],
"tagNames": ["name"],
"exceptions": []
}
]
}

0 comments on commit 85615cf

Please sign in to comment.