Don't merge an -ent syllable back into an open first syllable

This commit is contained in:
dualfroz committed 2026-10-03 03:17:23 +02:00
1 parent 99f9003a2e
commit 346dd33a4f
2 files changed
+5 -1

No files matched your search

@@ -49,7 +49,7 @@ const postprocess = function (arr) {
const first_is_open = const first_is_open =
(arr[0].length === 1 || arr[0].match(starts_with_consonant_vowel)) && (arr[0].length === 1 || arr[0].match(starts_with_consonant_vowel)) &&
arr[0].match(ends_with_vowel) arr[0].match(ends_with_vowel)
const second_is_joining = arr[1].match(joining_consonant_vowel) const second_is_joining = arr[1].match(joining_consonant_vowel) && ones.every(re => !arr[1].match(re))
if (first_is_open && second_is_joining) { if (first_is_open && second_is_joining) {
const possible_combination = arr[0] + arr[1] const possible_combination = arr[0] + arr[1]
+4
View File
@@ -56,6 +56,10 @@ const words = [
'tur key', 'tur key',
'cor si ca', 'cor si ca',
'dev iled', 'dev iled',
'si lent',
'ta lent',
'pa rent',
'a gent',
// 'horse', // 'horse',
// 'chance', // 'chance',
// 'peo ple' // 'peo ple'