[FOray-commit] SF.net SVN: foray:[14938] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2026-07-28 17:18:48
|
Revision: 14938
http://sourceforge.net/p/foray/code/14938
Author: victormote
Date: 2026-07-28 17:18:45 +0000 (Tue, 28 Jul 2026)
Log Message:
-----------
Convert another XML derivative-pattern to java classes.
Modified Paths:
--------------
trunk/foray/foray-common/src/main/java/org/foray/common/primitive/CodePointUtils.java
trunk/foray/foray-orthography/src/main/data/dictionaries/eng-Latn-ZZZ.dict.xml
trunk/foray/foray-orthography/src/main/data/orthographies/foray-orthography-config.xml
trunk/foray/foray-orthography/src/test/java/org/foray/orthography/StringWordTests.java
trunk/foray/foray-orthography/src/test/resources/orthography-config.xml
Added Paths:
-----------
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Factory.java
trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/mods/Full_2c_est.java
trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_FactoryTests.java
trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Tests.java
Modified: trunk/foray/foray-common/src/main/java/org/foray/common/primitive/CodePointUtils.java
===================================================================
--- trunk/foray/foray-common/src/main/java/org/foray/common/primitive/CodePointUtils.java 2026-07-28 14:59:23 UTC (rev 14937)
+++ trunk/foray/foray-common/src/main/java/org/foray/common/primitive/CodePointUtils.java 2026-07-28 17:18:45 UTC (rev 14938)
@@ -385,4 +385,14 @@
}
}
+ /**
+ * Converts a Unicode codePoint to a String containing its char(s).
+ * @param codePoint The Unicode codePoint to be converted.
+ * @return A String containing the char(s) in {@code codePoint}.
+ */
+ public static String toString(final int codePoint) {
+ /* TODO: After upgrading to Java 11+, replace use of this method with Character.toString(int codePoint). */
+ return new String(Character.toChars(codePoint));
+ }
+
}
Modified: trunk/foray/foray-orthography/src/main/data/dictionaries/eng-Latn-ZZZ.dict.xml
===================================================================
--- trunk/foray/foray-orthography/src/main/data/dictionaries/eng-Latn-ZZZ.dict.xml 2026-07-28 14:59:23 UTC (rev 14937)
+++ trunk/foray/foray-orthography/src/main/data/dictionaries/eng-Latn-ZZZ.dict.xml 2026-07-28 17:18:45 UTC (rev 14938)
@@ -11146,7 +11146,7 @@
<phrase><t>at-tend-ance cen-tre</t></phrase>
<w><t>at-tend-ant</t><noun><pluralizable/><convertible-to-possessive/></noun><adjective><extensible value="false"/></adjective></w>
<w><t>at-tend-ant-ly</t></w>
-<w><t>at-tend-er</t></w>
+<w><t>at-tend-er</t><noun><pluralizable/><convertible-to-possessive/></noun></w>
<w><t>at-tend-ing</t></w>
<w><t>at-tend-ing-ly</t></w>
<w><t>at-tent</t></w>
@@ -27265,7 +27265,7 @@
<w><t>chock-er</t></w>
<w><t>chock-stone</t></w>
<w><t>choc-o</t></w>
-<w><t>choc-o-late</t></w>
+<w><t>choc-o-late</t><noun><pluralizable/><convertible-to-possessive/></noun><adjective></adjective></w>
<w><t>choc-o-late=box</t></w>
<w><t>choc-o-late=flow-er</t></w>
<w><t>choc-o-lat-y</t></w>
@@ -55912,7 +55912,7 @@
<phrase><t>fin-ger’s breadth</t></phrase>
<w><t>fin-ger-stall</t></w>
<phrase><t>fin-ger tight</t></phrase>
-<w><t>fin-ger-tip</t></w>
+<w><t>fin-ger-tip</t><noun><pluralizable/><convertible-to-possessive/></noun></w>
<phrase><t>fin-ger wave</t></phrase>
<w><t>fin-ger-y</t></w>
<w><t>Fin-go</t></w>
@@ -70447,7 +70447,7 @@
<w><t>hob-bler</t></w>
<phrase><t>hob-ble skirt</t></phrase>
<w><t>Hobbs</t></w>
-<w><t>hob-by</t></w>
+<w><t>hob-by</t><noun><pluralizable/><convertible-to-possessive/></noun></w>
<w><t>hob-by-horse</t></w>
<w><t>hob-by=horse</t></w>
<w><t>hob-by-ist</t></w>
@@ -89764,7 +89764,7 @@
<w><t>los-sy</t></w>
<w><t>lost</t></w>
<phrase><t>Lost Gen-er-a-tion</t></phrase>
-<w><t>Lot</t></w>
+<w><t>Lot</t><noun><convertible-to-possessive/><proper/></noun></w>
<w><t>lot</t></w>
<w><t>lo-ta</t></w>
<w><t>L’O-tage</t></w>
@@ -111811,7 +111811,7 @@
<w><t>out-raved</t></w>
<w><t>out-rav-ing</t></w>
<w><t>ou-tré</t></w>
-<w><t>out-reach</t></w>
+<w><t>out-reach</t><noun><pluralizable/><convertible-to-possessive/></noun></w>
<w><t>out-read</t></w>
<w><t>out-read-ing</t></w>
<w><t>out-rea-son</t></w>
@@ -114681,7 +114681,7 @@
<w><t>pain-ful</t></w>
<w><t>pain-ful-ly</t></w>
<w><t>pain-ful-ness</t></w>
-<w><t>pain-kill-er</t></w>
+<w><t>pain-kill-er</t><noun><pluralizable/><convertible-to-possessive/></noun></w>
<w><t>pain-kil-ler</t></w>
<w><t>pain-less</t></w>
<w><t>pains</t></w>
@@ -180976,6 +180976,7 @@
<w><t>veg-e-ta-tion-al</t></w>
<w><t>veg-e-ta-tion-less</t></w>
<w><t>veg-e-ta-tive</t></w>
+<w><t>veg-gie</t><noun><pluralizable/><convertible-to-possessive/></noun></w>
<w><t>ve-he-mence</t></w>
<w><t>ve-he-men-cy</t></w>
<w><t>ve-he-ment</t></w>
Modified: trunk/foray/foray-orthography/src/main/data/orthographies/foray-orthography-config.xml
===================================================================
--- trunk/foray/foray-orthography/src/main/data/orthographies/foray-orthography-config.xml 2026-07-28 14:59:23 UTC (rev 14937)
+++ trunk/foray/foray-orthography/src/main/data/orthographies/foray-orthography-config.xml 2026-07-28 17:18:45 UTC (rev 14938)
@@ -59,14 +59,6 @@
<derivative-type type="comparative"/>
</derivative-rule>
</derivative-pattern>
- <derivative-pattern desc="ends with certain double consonants, then /-est/">
- <match>^([a-zæœëéöA-ZÆŒ\-‘’ ]+)([d])(\2)est$</match>
- <replace>$1$2</replace>
- <derivative-rule>
- <adjective><extensible/></adjective>
- <derivative-type type="superlative"/>
- </derivative-rule>
- </derivative-pattern>
<derivative-pattern desc="ends with /-ier/, root ends with /-y/">
<match>^([a-zæœëéöA-ZÆŒ\-‘’ ]+)ier$</match>
<replace>$1y</replace>
@@ -118,6 +110,7 @@
<derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_er_Factory"/>
<derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_er2_Factory"/>
+ <derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_2c_est_Factory"/>
<derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_est_Factory"/>
<derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_est2_Factory"/>
</derivative-factory-list>
Added: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est.java (rev 0)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est.java 2026-07-28 17:18:45 UTC (rev 14938)
@@ -0,0 +1,72 @@
+/*
+ * Copyright 2019 The FOray Project.
+ * http://www.foray.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.orthography.inflection.eng;
+
+import org.foray.orthography.Word4a;
+import org.foray.orthography.WordSegment4a;
+import org.foray.orthography.inflection.InflectedWord;
+import org.foray.orthography.inflection.mods.Full_2c_est;
+
+import java.util.regex.Pattern;
+
+/**
+ * Wraps an extensible adjective that ends with a vowel and then a consonant, doubles that consonant, then adds "est" at
+ * the end to make it a superlative.
+ * For example, the English word "thin" would be wrapped to make the word "thinnest".
+ */
+public class EngLatnSuffix_2c_est extends InflectedWord {
+
+ /** The pattern to be matched by words with this inflection. */
+ public static final Pattern PATTERN = Pattern.compile("^(" + EngLatn.WORD_CHARS + "+)([dn])(\\2)est$");
+
+ /** Constant needed for serialization. */
+ private static final long serialVersionUID = 8397674653229148700L;
+
+ /**
+ * Constructor.
+ * @param wrappedWord The wrapped word.
+ */
+ public EngLatnSuffix_2c_est(final Word4a wrappedWord) {
+ super(wrappedWord);
+ }
+
+ @Override
+ public WordSegment4a getAppendedSegment() {
+ final WordSegment4a lastSegment = getWrappedWord().getLastWordSegment();
+ final int lastIndex = lastSegment.length() - 1;
+ final char lastChar = lastSegment.charAt(lastIndex);
+ return Full_2c_est.getInstance(lastChar);
+ }
+
+ @Override
+ public WordSegment4a getModifiedSegment() {
+ return null;
+ }
+
+}
Property changes on: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est.java
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev
\ No newline at end of property
Added: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Factory.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Factory.java (rev 0)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Factory.java 2026-07-28 17:18:45 UTC (rev 14938)
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2019 The FOray Project.
+ * http://www.foray.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.orthography.inflection.eng;
+
+import org.foray.orthography.Word4a;
+import org.foray.orthography.inflection.InflectionFactory;
+
+import org.axsl.orthography.PartOfSpeech;
+import org.axsl.orthography.PosQualifier;
+
+import java.util.regex.Matcher;
+
+/**
+ * Factory class for {@link EngLatnSuffix_2c_est}.
+ */
+public final class EngLatnSuffix_2c_est_Factory extends InflectionFactory<EngLatnSuffix_2c_est> {
+
+ /** The singleton instance. */
+ private static final EngLatnSuffix_2c_est_Factory THE_INSTANCE = new EngLatnSuffix_2c_est_Factory();
+
+ /**
+ * Private constructor for this singleton class.
+ */
+ private EngLatnSuffix_2c_est_Factory() { }
+
+ /**
+ * Returns the singleton instance.
+ * @return The singleton instance.
+ */
+ public static EngLatnSuffix_2c_est_Factory getInstance() {
+ return THE_INSTANCE;
+ }
+
+ @Override
+ public CharSequence findLemmaChars(final CharSequence chars) {
+ final Matcher matcher = EngLatnSuffix_2c_est.PATTERN.matcher(chars);
+ if (! matcher.matches()) {
+ return null;
+ }
+
+ final String lemmaChars = matcher.group(1) + matcher.group(2);
+ return lemmaChars;
+ }
+
+ @Override
+ public boolean isValidLemma(final Word4a lemma) {
+ if (lemma.isOfQualifiedType(PartOfSpeech.ADJECTIVE, PosQualifier.EXTENSIBLE)) {
+ /*
+ <adjective><extensible/></adjective>
+ <derivative-type type="superlative"/>
+ */
+ return true;
+ }
+ return false;
+ }
+
+ @Override
+ protected EngLatnSuffix_2c_est makeInstance(final Word4a lemma) {
+ return new EngLatnSuffix_2c_est(lemma);
+ }
+
+}
Property changes on: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Factory.java
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev
\ No newline at end of property
Added: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/mods/Full_2c_est.java
===================================================================
--- trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/mods/Full_2c_est.java (rev 0)
+++ trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/mods/Full_2c_est.java 2026-07-28 17:18:45 UTC (rev 14938)
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2026 The FOray Project.
+ * http://www.foray.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.orthography.inflection.mods;
+
+import org.foray.common.primitive.CodePointUtils;
+import org.foray.orthography.StringWordSegmentLatin1;
+import org.foray.orthography.WordSegment4a;
+
+/**
+ * Full segment composed of a single consonant following by "est".
+ */
+public final class Full_2c_est {
+
+ /** Pre-constructed instance staring with "d". */
+ private static final StringWordSegmentLatin1 D_INSTANCE = new StringWordSegmentLatin1("dest");
+
+ /** Pre-constructed instance staring with "n". */
+ private static final StringWordSegmentLatin1 N_INSTANCE = new StringWordSegmentLatin1("nest");
+
+ /**
+ * Private constructor. This is a utility class that should not be instantiated.
+ */
+ private Full_2c_est() { }
+
+ /**
+ * Gets the segment instance that beings with a specified consonant.
+ * @param consonant The consonant for which the segment instance is needed.
+ * @return The segment instance for {@code consonant}.
+ */
+ public static WordSegment4a getInstance(final int consonant) {
+ switch (consonant) {
+ case 'd': return D_INSTANCE;
+ case 'n': return N_INSTANCE;
+ }
+ throw new IllegalArgumentException("Unexpected leading consonant: " + CodePointUtils.toString(consonant));
+ }
+
+}
Property changes on: trunk/foray/foray-orthography/src/main/java/org/foray/orthography/inflection/mods/Full_2c_est.java
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev
\ No newline at end of property
Modified: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/StringWordTests.java
===================================================================
--- trunk/foray/foray-orthography/src/test/java/org/foray/orthography/StringWordTests.java 2026-07-28 14:59:23 UTC (rev 14937)
+++ trunk/foray/foray-orthography/src/test/java/org/foray/orthography/StringWordTests.java 2026-07-28 17:18:45 UTC (rev 14938)
@@ -136,6 +136,15 @@
/** A verb test word: replied. */
public static final StringWord WORD_REPLIED = new StringWord(REGULAR_VERB, "re", "plied");
+ /** An adjective test word: thin. */
+ public static final StringWord WORD_THIN = new StringWord(EXTENSIBLE_ADJECTIVE, "thin");
+
+ /** An adjective test word: thinner. */
+ public static final StringWord WORD_THINNER = new StringWord(EXTENSIBLE_ADJECTIVE, "thin", "ner");
+
+ /** An adjective test word: thinnest. */
+ public static final StringWord WORD_THINNEST = new StringWord(EXTENSIBLE_ADJECTIVE, "thin", "nest");
+
/**
* Test of {@link StringWord#getWordComponent(int)}.
*/
Added: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_FactoryTests.java
===================================================================
--- trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_FactoryTests.java (rev 0)
+++ trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_FactoryTests.java 2026-07-28 17:18:45 UTC (rev 14938)
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2026 The FOray Project.
+ * http://www.foray.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.orthography.inflection.eng;
+
+import org.foray.orthography.Dictionary4a;
+import org.foray.orthography.StringWordTests;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import org.assertj.core.api.AssertionsForClassTypes;
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.api.Test;
+import org.mockito.Mockito;
+
+/**
+ * Tests of {@link EngLatnSuffix_2c_est_Factory}.
+ */
+public class EngLatnSuffix_2c_est_FactoryTests {
+
+ /** The object under test. */
+ private EngLatnSuffix_2c_est_Factory out;
+
+ /** A dictionary to use for these tests. */
+ private Dictionary4a dictionary;
+
+ /**
+ * Test setup.
+ */
+ @BeforeEach
+ public void before() {
+ this.out = EngLatnSuffix_2c_est_Factory.getInstance();
+ this.dictionary = Mockito.mock(Dictionary4a.class);
+ Mockito.when(dictionary.getWord("thin")).thenReturn(StringWordTests.WORD_THIN);
+ }
+
+ /**
+ * Test of a String for which the factory should not be able to create an instance.
+ */
+ @Test
+ public void testInvalid() {
+ final EngLatnSuffix_2c_est word = out.makeInstance("thinner", this.dictionary);
+ AssertionsForClassTypes.assertThat(word).isNull();
+ }
+
+ /**
+ * Test of a String for which the factory should be able to create an instance.
+ */
+ @Test
+ public void testValid() {
+ final EngLatnSuffix_2c_est word = out.makeInstance("thinnest", this.dictionary);
+ /* Test for instance equality. */
+ AssertionsForClassTypes.assertThat(word.getWrappedWord()).isSameAs(StringWordTests.WORD_THIN);
+ assertThat(word.getActualContent().toString()).isEqualTo("thinnest");
+ }
+
+}
Property changes on: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_FactoryTests.java
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev
\ No newline at end of property
Added: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Tests.java
===================================================================
--- trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Tests.java (rev 0)
+++ trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Tests.java 2026-07-28 17:18:45 UTC (rev 14938)
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2026 The FOray Project.
+ * http://www.foray.org
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * This work is in part derived from the following work(s), used with the
+ * permission of the licensor:
+ * Apache FOP, licensed by the Apache Software Foundation
+ *
+ */
+
+/*
+ * $LastChangedRevision$
+ * $LastChangedDate$
+ * $LastChangedBy$
+ */
+
+package org.foray.orthography.inflection.eng;
+
+import org.foray.orthography.StringWord;
+import org.foray.orthography.StringWordTests;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import org.junit.jupiter.api.Test;
+
+/**
+ * Tests of {@link EngLatnSuffix_2c_est}.
+ */
+public class EngLatnSuffix_2c_est_Tests {
+
+ /**
+ * Tests for words ending in double-consonant following by "est".
+ */
+ @Test
+ public void test01() {
+ final StringWord word = StringWordTests.WORD_THIN;
+ final EngLatnSuffix_2c_est wrapper = new EngLatnSuffix_2c_est(word);
+
+ assertThat(wrapper.toString()).isEqualTo("thin-nest");
+ assertThat(wrapper.getNormalizedContent()).isEqualTo("thin");
+ assertThat(wrapper.getActualContent().toString()).isEqualTo("thinnest");
+ }
+
+}
Property changes on: trunk/foray/foray-orthography/src/test/java/org/foray/orthography/inflection/eng/EngLatnSuffix_2c_est_Tests.java
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Rev
\ No newline at end of property
Modified: trunk/foray/foray-orthography/src/test/resources/orthography-config.xml
===================================================================
--- trunk/foray/foray-orthography/src/test/resources/orthography-config.xml 2026-07-28 14:59:23 UTC (rev 14937)
+++ trunk/foray/foray-orthography/src/test/resources/orthography-config.xml 2026-07-28 17:18:45 UTC (rev 14938)
@@ -30,6 +30,7 @@
<derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_er_Factory"/>
<derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_er2_Factory"/>
+ <derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_2c_est_Factory"/>
<derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_est_Factory"/>
<derivative-factory class="org.foray.orthography.inflection.eng.EngLatnSuffix_est2_Factory"/>
</derivative-factory-list>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|