Hacker News new | ask | show | jobs
by mokto 10 days ago
Super nice ! Feels like the “where” part is the hardest one. How do you decide if a token is a place or a brand, like “Subway” or a shop called “Paris” ?
1 comments

Brands take precedence, unless you search for "X in Y", then Y is treated as a place always. It's tricky though. I don't think it covers all cases well enough, though it works fine within Switzerland
Ok thanks. So “in Y” always wins & a shop just called Paris stays a brand. Feels like that one still breaks outside Switzerland ?