openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
653 stars 382 forks source link

Facets - Use "an" instead of 'a' if the following word starts with a vowel sound #852

Open teolemon opened 7 years ago

teolemon commented 7 years ago

What

Examples

Url: https://world.openfoodfacts.org/packaging/emballage-carton-bec-verseur Context: Products with a Emballage-carton-bec-verseur packaging ... Possible replacements:an

Url: https://world.openfoodfacts.org/packaging/emballages-a-jeter Context: Products with a Emballages-a-jeter packaging - World Possible replacements:an

Url: https://world.openfoodfacts.org/packaging/a-jeter Context: Products with a A-jeter packaging - World Possible replacements:an

Url: https://world.openfoodfacts.org/packaging/individual Context: Products with a Individual packaging - World Possible replacements:an

hangy commented 7 years ago

Difficult for multiple languages, even with gettext: https://stackoverflow.com/a/7891559/11963