text adjustments and typo fixes

This commit is contained in:
xenohedron 2023-07-25 00:10:12 -04:00
parent acceb33bd9
commit 6b23cd25f9
8 changed files with 13 additions and 15 deletions

View file

@ -972,7 +972,8 @@ public final class CardUtil {
if (text.startsWith("a ")
|| text.startsWith("an ")
|| text.startsWith("another ")
|| text.startsWith("any ")) {
|| text.startsWith("any ")
|| text.startsWith("one ")) {
return text;
}
return (!text.isEmpty() && vowels.contains(text.substring(0, 1))) ? "an " + text : "a " + text;