Skip to content

Commit c7a8eee

Browse files
committed
add spaces
1 parent 1fce6d5 commit c7a8eee

File tree

6 files changed

+10
-0
lines changed

6 files changed

+10
-0
lines changed

dictionary/parser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ function template<T>(parser: Parser<T>): Parser<T> {
7979
return openBracket.with(parser).skip(closeBracket);
8080
}
8181
const simpleUnit = memoize((kind: string) => word.skip(tag(keyword(kind))));
82+
8283
function detectRepetition(
8384
source: ReadonlyArray<string>,
8485
): Readonly<{ before: string; repeat: string; after: string }> {

src/parser/lexer.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ const properWords = allAtLeastOnce(
7171
)
7272
.map((array) => array.join(" "))
7373
.map((words) => ({ type: "proper word", words, kind: "latin" }) as const);
74+
7475
const specificWord = memoize((thatWord: string) =>
7576
word.filter((thisWord) =>
7677
thatWord === thisWord ||
@@ -94,6 +95,7 @@ const longWord = allAtLeastOnce(repeatingLetter)
9495
})
9596
.filter(({ word }) => /^[a-z]/.test(word))
9697
.filter(({ length }) => length > 1);
98+
9799
const alaX = memoize((word: string) =>
98100
sequence(specificWord("ala"), specificWord(word)).map(() => word)
99101
);

src/parser/parser.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ const comma = punctuation
8383
const optionalComma = optional(comma);
8484
const word = specificToken("word").map(({ word }) => word);
8585
const properWords = specificToken("proper word").map(({ words }) => words);
86+
8687
function wordFrom(set: Set<string>, description: string): Parser<string> {
8788
return word.filter((word) =>
8889
set.has(word) ||
@@ -128,6 +129,7 @@ const emphasis = choice<Emphasis>(
128129
specificWord("a").map((word) => ({ type: "word", word })),
129130
);
130131
const optionalEmphasis = optional(emphasis);
132+
131133
const alaXLongGlyph = memoize((word: string) =>
132134
specificWord(word)
133135
.skip(specificToken("headless long glyph end"))
@@ -335,6 +337,7 @@ const longAnu = sequence(
335337
)
336338
.skip(specificToken("headless long glyph end"))
337339
.map(([phrase, morePhrase]) => [phrase, ...morePhrase]);
340+
338341
function nestedPhrasesOnly(
339342
nestingRule: ReadonlyArray<"en" | "li" | "o" | "e" | "anu">,
340343
): Parser<MultiplePhrases> {
@@ -471,6 +474,7 @@ const preposition = choice<Preposition>(
471474
})),
472475
)
473476
.filter(filter(PREPOSITION_RULE));
477+
474478
function associatedPredicates(
475479
nestingRule: ReadonlyArray<"li" | "o" | "anu">,
476480
): Parser<Predicate> {

src/settings_frontend.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ const UPDATERS: Readonly<{ [K in keyof Settings]: Updater<Settings[K]> }> = {
5353
separateRepeatedModifiers: BOOL_UPDATER,
5454
};
5555
const KEYS = Object.keys(UPDATERS) as ReadonlyArray<keyof Settings>;
56+
5657
function loadOneFromLocalStorage<T extends keyof Settings>(key: T): void {
5758
const source = localStorage.getItem(key);
5859
if (source != null) {

src/translator/phrase.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export type PhraseTranslation =
2929
| Readonly<{ type: "noun"; noun: English.NounPhrase }>
3030
| (Readonly<{ type: "adjective" }> & AdjectiveWithInWay)
3131
| Readonly<{ type: "verb"; verb: PartialCompoundVerb }>;
32+
3233
function nounPhrase(
3334
options: Readonly<{
3435
emphasis: boolean;

src/translator/word_unit.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type WordUnitTranslation =
1515
| (Readonly<{ type: "noun" }> & PartialNoun)
1616
| Readonly<{ type: "adjective"; adjective: English.AdjectivePhrase }>
1717
| (Readonly<{ type: "verb" }> & PartialVerb);
18+
1819
function defaultWordUnit(
1920
options: Readonly<{
2021
word: string;

0 commit comments

Comments
 (0)