mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 05:54:25 -04:00
Merge branch 'fix-schema' into 'main'
fix: make ExampleCategory.morphemes optional See merge request PronounsPage/PronounsPage!553
This commit is contained in:
commit
2ba5d4f406
@ -145,9 +145,10 @@ interface ExampleCategory {
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* which morphemes belong to this category. visible example sentences will contain at least one listed morpheme
|
||||
* which morphemes belong to this category. visible example sentences will contain at least one listed morpheme.
|
||||
* if not present, example categories must be assigned to examples using the comma-separated "categories" column in examples.tsv
|
||||
*/
|
||||
morphemes: string[];
|
||||
morphemes?: string[];
|
||||
/**
|
||||
* whether this category is only shown in comprehensive view
|
||||
* @default false
|
||||
|
@ -20,7 +20,10 @@ export const examples = buildList(function* () {
|
||||
Example.parse(e.null || e.singular),
|
||||
Example.parse(e.null_plural || e.plural || e.singular),
|
||||
e.isHonorific,
|
||||
e.categories ? e.categories.split(',').map(c => c.trim()).filter(c => c) : [],
|
||||
e.categories
|
||||
? e.categories.split(',').map((c) => c.trim())
|
||||
.filter((c) => c)
|
||||
: [],
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user