Dave Jarvis' Repositories

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

Made an' not ambiguous

AuthorDave Jarvis <email>
Date2021-06-16 22:12:14 GMT-0700
Commit4d67ed8f5cd9f9928bebed203bf6bc931ad834a2
Parent4f77c89
lib/src/main/java/com/keenwrite/quotes/Contractions.java
private static final Set<String> ENDED_AMBIGUOUS = Set.of(
- // and|an
- "an",
// give|martial arts garment
"gi",
// in|I
"i",
// of|letter o
"o"
);
private static final Set<String> ENDED_UNAMBIGUOUS = Set.of(
- // old
- "ol",
- // the
- "th",
- // what
- "wha",
+ // and
+ "an",
// for/before
"fo",
+ // old
+ "ol",
// San (Francisco)
"Sa",
// shift
"shif",
+ // the
+ "th",
+ // what
+ "wha",
// Top ~500 common -ing words as English contractions.
"acceptin",
Delta8 lines added, 8 lines removed