File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -346,6 +346,17 @@ export const SENTENCE_RULES: ReadonlyArray<(sentence: Sentence) => boolean> = [
346
346
}
347
347
return true ;
348
348
} ,
349
+ // "anu la" must only be at the beginning
350
+ ( sentence ) =>
351
+ sentence . type !== "simple" ||
352
+ sentence . contextClauses . slice ( 1 ) . every ( ( { type } ) => type !== "anu" ) ||
353
+ throwError ( new UnrecognizedError ( '"anu la" inside a sentence' ) ) ,
354
+
355
+ // there cannot be both "anu" as sentence starting particle and "anu la"
356
+ ( sentence ) =>
357
+ sentence . type !== "simple" || sentence . startingParticle == null ||
358
+ sentence . startingParticle . word !== "anu" ||
359
+ sentence . contextClauses . every ( ( { type } ) => type !== "anu" ) ,
349
360
] ;
350
361
export const MULTIPLE_SENTENCES_RULES : ReadonlyArray <
351
362
( sentences : ReadonlyArray < Sentence > ) => boolean
You can’t perform that action at this time.
0 commit comments