From ab08dc9429e33bfbbd32bd46c07d793fa8aade30 Mon Sep 17 00:00:00 2001 From: Ender-Emp <100535512+Ender-Emp@users.noreply.github.com> Date: Sat, 2 Aug 2025 06:48:10 -0500 Subject: [PATCH] fix regex of 'and' adjectivization rule (#1225) --- index.html | 2 +- utils/languageUtils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c021b1fb..3c0ba0f3 100644 --- a/index.html +++ b/index.html @@ -8083,7 +8083,7 @@ - + diff --git a/utils/languageUtils.js b/utils/languageUtils.js index 87f5d67d..9caa1b6f 100644 --- a/utils/languageUtils.js +++ b/utils/languageUtils.js @@ -135,7 +135,7 @@ const adjectivizationRules = [ { name: "an", probability: 0.5, - condition: new RegExp("^[a-zA-Z]{0-7}$"), + condition: new RegExp("^[a-zA-Z]{0,7}$"), action: noun => trimVowels(noun) + "an" } ];