parser
parser copied to clipboard
venue name parsing
related to https://github.com/pelias/api/pull/1380
we're currently not doing a great job of parsing venue names where the place classification comes at the end of the input:
node bin/cli.js Café Pelias
(0.40) ➜ [ { place: 'Café' } ]
node bin/cli.js Café Pelias Geocoder
(0.22) ➜ [ { place: 'Café' } ]
node bin/cli.js Pelias Café
(0.90) ➜ [ { place: 'Pelias Café' } ]
node bin/cli.js Pelias Geocoder Café
(0.80) ➜ [ { place: 'Pelias Geocoder Café' } ]
examples: https://brandongaille.com/list-45-catchy-coffee-shop-house-names/