mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(ru)(nouns) replace wrong – (U+2013 en dash) with - (U+002D HYPHEN-MINUS)
This commit is contained in:
parent
ff2788fc72
commit
4fad0e0fd7
@ -1,7 +1,7 @@
|
||||
masc fem neutr mascPl femPl neutrPl
|
||||
-ак -ачиня -аче(в) -аки -ачини -аче(ва)
|
||||
-ак -ачица -аче(в) -аки -ачицы -аче(ва)
|
||||
-ал -алка -альт –алы -алки -альты
|
||||
-ал -алка -альт -алы -алки -альты
|
||||
-ал -алка -альче(в) -алы -алки -альче(ва)
|
||||
-ал -анка -альт -алы -анки -альты
|
||||
-ан -анка -альче(в) -аны -анки -альче(ва)
|
||||
@ -134,7 +134,7 @@ masc fem neutr mascPl femPl neutrPl
|
||||
-чик -чица -чикс -чики -чицы -чиксы
|
||||
-чик -чица -чикс -чики -чицы -чиксы
|
||||
-чик -чица -чина -чики -чицы -чины
|
||||
-чик -чица -щина -чики -чицы –щины
|
||||
-чик -чица -щина -чики -чицы -щины
|
||||
-щик -щица -че -щики -щицы -че
|
||||
-щик -щица -щикс -щики -щицы -щиксы
|
||||
-ыка -ычица -ыка -ик -ычиц -ык
|
||||
|
|
@ -876,7 +876,7 @@ export interface NounRaw {
|
||||
}
|
||||
|
||||
export const genders = ['masc', 'fem', 'neutr'] as const;
|
||||
const gendersWithNumerus = ['masc', 'fem', 'neutr', 'mascPl', 'femPl', 'neutrPl'] as const;
|
||||
export const gendersWithNumerus = ['masc', 'fem', 'neutr', 'mascPl', 'femPl', 'neutrPl'] as const;
|
||||
|
||||
export class Noun {
|
||||
id: string;
|
||||
|
@ -2,7 +2,7 @@ import { describe, expect, test } from '@jest/globals';
|
||||
|
||||
import allLocales from '../../locale/locales.ts';
|
||||
import { loadTsv } from '../../src/tsv.ts';
|
||||
import { Example } from '../../src/classes.ts';
|
||||
import { Example, gendersWithNumerus } from '../../src/classes.ts';
|
||||
import type { ExpectationResult } from 'expect';
|
||||
import { loadSumlFromBase } from '../../server/loader.ts';
|
||||
import type { Config } from '../../locale/config.ts';
|
||||
@ -110,4 +110,11 @@ describe.each(allLocales)('data files of $code', ({ code }) => {
|
||||
test('nouns/nounTemplates.tsv contains templates when templates are enabled', () => {
|
||||
expect(nounTemplates.length > 0).toBe(config.nouns.templates?.enabled);
|
||||
});
|
||||
test('nouns/nounTemplates.tsv have exactly one hyphen as placeholder for root', () => {
|
||||
for (const template of nounTemplates) {
|
||||
for (const genderWithNumerus of gendersWithNumerus) {
|
||||
expect(template[genderWithNumerus]).toMatch(/^(?:[^-]*-[^-]*(?:\/|$))+/);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user