pelias / whosonfirst

Importer for Who's on First gazetteer
MIT License
27 stars 42 forks source link

squash consecutive spaces #451

Open missinglink opened 5 years ago

missinglink commented 5 years ago

Some place names contain multiple consecutive spaces, it should be safe to squash these down to a single space:

"county": "Division No.  6",
"county_gid": "whosonfirst:county:1158868963",
orangejulius commented 5 years ago

Definitely, this sort of thing is super annoying and causes confusion in the acceptance tests. Do you think we could take it one step further and always perform this? Maybe in pelias/model? I can't think of a case where we would ever want consecutive spaces (or maybe even consecutive whitespace of any kind) in any of our text fields.