Dave Jarvis' Repositories

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

Make help singular

AuthorDave Jarvis <email>
Date2021-06-20 15:42:26 GMT-0700
Commitfef153f0e50829ab65b6dd1828c13f7a7a879109
Parent9eb983d
src/main/java/com/whitemagicsoftware/keenquotes/Lexeme.java
}
+ static Lexeme createLexeme(
+ final LexemeType lexeme, final int began, final int ended ) {
+ assert lexeme != null;
+ return new Lexeme( lexeme, began, ended );
+ }
+
/**
* Extracts a sequence of characters from the given text at the offsets
assert that != null;
return this.mBegan - that.mBegan;
- }
-
- static Lexeme createLexeme(
- final LexemeType lexeme, final int began, final int ended ) {
- assert lexeme != null;
- return new Lexeme( lexeme, began, ended );
}
}
src/main/java/com/whitemagicsoftware/keenquotes/Lexer.java
lexeme = createLexeme(
slurp( i, ( next, ci ) ->
- next == '.' || (next == ' ' && peek( ci ) == '.') ) == 0
+ next == '.' || next == ' ' && peek( ci ) == '.' ) == 0
? PERIOD
: ELLIPSIS,
src/main/java/com/whitemagicsoftware/keenquotes/Settings.java
names = {"-ub", "--unamb-began"},
description =
- "Contractions to treat as unambiguous (e.g., cause,bout)",
- paramLabel = "words"
+ "Contraction to treat as unambiguous (e.g., cause, bout)",
+ paramLabel = "word"
)
private String[] mBeganUnambiguous;
/**
* List of unambiguous contractions having lagging apostrophes.
*/
@CommandLine.Option(
names = {"-ue", "--unamb-ended"},
description =
- "Contractions to treat as unambiguous (e.g., frien,thinkin)",
- paramLabel = "words"
+ "Contraction to treat as unambiguous (e.g., frien, thinkin)",
+ paramLabel = "word"
)
private String[] mEndedUnambiguous;
/**
* List of ambiguous contractions having leading apostrophes.
*/
@CommandLine.Option(
names = {"-ab", "--amb-began"},
description =
- "Contractions to treat as ambiguous (e.g., sup,kay)",
- paramLabel = "words"
+ "Contraction to treat as ambiguous (e.g., sup, kay)",
+ paramLabel = "word"
)
private String[] mBeganAmbiguous;
/**
* List of ambiguous contractions having lagging apostrophes.
*/
@CommandLine.Option(
names = {"-ae", "--amb-ended"},
description =
- "Contractions to treat as ambiguous (e.g., gi,o)",
- paramLabel = "words"
+ "Contraction to treat as ambiguous (e.g., gi, o)",
+ paramLabel = "word"
)
private String[] mEndedAmbiguous;
Delta15 lines added, 15 lines removed