Fix more FP
Change-Id: I1f8045b4f93f64a7c8597dfbc35a1744af3aaf20
diff --git a/test/test.js b/test/test.js
index b954e06..66cf37c 100644
--- a/test/test.js
+++ b/test/test.js
@@ -110,7 +110,7 @@
const command = 'node src/index.js < test/data/gender.conllu';
const stdout = execSync(command).toString();
const foundry_count = (stdout.match(/# foundry = gender/g) || []).length;
- expect(foundry_count).toBe(18);
+ expect(foundry_count).toBe(20);
});
test('Full mode: non-gender tokens pass through unchanged', () => {
@@ -232,6 +232,15 @@
expect(stdout).toContain('6\tsin\t_\tNOUN');
});
+ test('No false positives from gender.conllu: et (in et al.) and their (English) pass through unchanged', () => {
+ const command = 'node src/index.js < test/data/gender.conllu';
+ const stdout = execSync(command).toString();
+ // et in "Müller et al." must not be tagged
+ expect(stdout).toContain('2\tet\t_\tPART');
+ // their in English quotation must not be tagged
+ expect(stdout).toContain('2\ttheir\t_\tPRON');
+ });
+
test('No false positive: Mensch mid-sentence must not be tagged as neo-pronoun', () => {
const testInput = `# foundry = base
# text_id = fp-003