Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenquotes.git

Add more hackney contractions

AuthorDave Jarvis <email>
Date2022-08-20 16:39:46 GMT-0700
Commit6e351ba66ffd29e489a7e4982baac7b8921dee8d
Parent395627e
src/main/java/com/whitemagicsoftware/keenquotes/parser/Contractions.java
// them
"em",
+ // themselves,
+ "emselves",
+ // affectionate
+ "fectionate",
// afraid
"fraid",
+ // ???
+ "funder",
// against
"gainst",
// him
"im",
+ // little
+ "ittle",
// and
"n",
// beneath
"neath",
// another
"nother",
+ // another
+ "nudder",
// enough
"nuff",
// gonna
"onna",
"onna'",
// horse
"oss",
// horses
"osses",
+ // splash
+ "plash",
// upon
"pon",
// that's|is
"s",
"sblood",
// excuse
"scuse",
+ // suppose
+ "spose",
+ // suspect|expect
+ "spect",
+ // suspects|expects
+ "spects",
"sfar",
"sfoot",
"taint",
"tain",
+ "tay",
"til",
"tis",
+ "tish",
"tisn",
+ // stomach
+ "tomach",
+ // stormed
+ "tormed",
"tshall",
"twas",
// what you|choo choo train
"choo",
+ // across|angry
+ "cross",
// he|e pluribus unum
"e",
// here|earlier
"ere",
// afro|to and fro
"fro",
+ // unfounded|founded
+ "founded",
// whore|ho ho!
"ho",
+ // will|sick
+ "ill",
// okay|letter K
"kay",
+ // molasses|women
+ "lasses",
// lo|lo and behold
"lo",
// them|utterance
"um",
+ // away|direction
+ "way",
// is that|Iranian village
"zat"
src/test/java/com/whitemagicsoftware/keenquotes/parser/AmbiguityResolverTest.java
@Test
- @Disabled
void test_Resolve_1Pass_QuotesReplaced() throws IOException {
test( "unambiguous-1-pass.txt" );
}
@Test
- @Disabled
void test_Resolve_2Pass_QuotesReplaced() throws IOException {
test( "unambiguous-2-pass.txt" );
}
@Test
+ @Disabled
void test_Resolve_InvalidGrammar_AmbiguousRemain() throws IOException {
test( "invalid-grammar.txt" );
src/test/resources/com/whitemagicsoftware/keenquotes/texts/unambiguous-2-pass.txt
# Single quotes
# ########################################################################
-
With 'quotes' in the middle.
With &lsquo;quotes&rsquo; in the middle.
# Mixed
# ########################################################################
+#"Granpa Harry 'spects you, Miss Mayton."
+#&ldquo;Granpa Harry &apos;spects you, Miss Mayton.&rdquo;
+
"She said, 'That's Sam's'," said the Sams' cat.
&ldquo;She said, &lsquo;That&apos;s Sam&apos;s&rsquo;,&rdquo; said the Sams&apos; cat.
"You 'cause---" all fifteen years' worth.
&ldquo;You &apos;cause---&rdquo; all fifteen years&apos; worth.
-
Delta38 lines added, 4 lines removed, 34-line increase