From 049f8b97a43a88405ca96e83a2d931339b5130e2 Mon Sep 17 00:00:00 2001 From: Ender_Emp Date: Fri, 1 Aug 2025 22:52:55 -0500 Subject: [PATCH] fix regex of 'and' adjectivization rule --- 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" } ];