From 9d78ab46e32bb07e68894a49725ddb9854e6563c Mon Sep 17 00:00:00 2001 From: Yomguithereal Date: Wed, 2 Sep 2020 17:08:29 +0200 Subject: [PATCH] Simpler phonetics/french/fonem V-10 rule Related to #175 --- src/phonetics/french/fonem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/phonetics/french/fonem.js b/src/phonetics/french/fonem.js index 4f7662d..111d3fb 100644 --- a/src/phonetics/french/fonem.js +++ b/src/phonetics/french/fonem.js @@ -38,7 +38,7 @@ const RULES = { 'V-7': [/([^G])AY$/, '$1E'], 'V-8': [/EUX$/, 'EU'], 'V-9': [`EY(?=$|${C})`, 'E'], - 'V-10': [`(^|${C})Y(?=${V}|$)|(^|${V})Y(?=${C}|$)`, '$1$2I'], + 'V-10': [`(^|${C})Y|Y(${C}|$)`, '$1I$2'], 'V-11': [`(${V})I(?=${V})`, '$1Y'], 'V-12': [`(${V})ILL`, '$1Y'], 'V-13': [/OU(?=I(?!LL)|[AEOU])/g, 'W'],