Debian Codegraph @

importers/ding2tei/todo/parsing.phrase-identification

raw
1 It would be nice to identify phrases or other non-trivial expression, such that
2 they may be considered examples for associated keywords, and not keywords
3 themselves.
4
5 NOTE: This has been implemented, although there remains room for improvement.
6 See Language/Ding/Enrich/Example*
7
8 ? Test for subsequence match (should be delimited by whitespace or similar).
9 * Potential counterexamples:
10 . "etw. unterlassen {vt} [adm.] | etw. zu unterlassen haben [jur.]"
11 . "Adel" ~ "niederer Adel"
12 . "tongue" ~ "little tongue" ~ "Zünglein"
13 ? require a certain maximum number of words in the key unit?
14 * Note that capitalization may change.
15 ? Require a certain minimum number of words in the examined unit.
16 * positive signs
17 ? a comma
18 ? a period (at the end?)
19 ? Consider quotes (<">, <'>)
20
21 ? Which side should match?
22 ? Any?
23 ? Both?
24 ? The side that currently is the "key"-side?
25 ? The side that currently is the "value"-side?
26
27 Obstacles
28 * plural form / form of different gender (m/f)
29 * Simple heuristics should do.
30 * Inflected verbs
31 * Note: Ideally, a lot of inflected forms are to be imprted from the
32 Wiktionary in the future. (There is ongoing work from Karl Bartel.)
33 * This would however be accessible in TEI, so t is either to be parsed
34 separately or merged post translation.
35 * Note: Sometimes inflected forms are listed individually. (TODO)
36 * Some regular forms could likely be caught with a heuristic.
37 * Unsure, if worth the effort.
38 ? Ignore?
39 * special Ex.: "ausreizen" ~ "... reizt ... aus ..."
40
41 * Plural forms
42 * Take care not to match "Menschen" as an example for "Mensch".
43
44
45 Some examples:
46 > Angeklagte {m,f}; Angeklagter [jur.] | Angeklagten {pl}; Angeklagte | Hauptangeklagter; Erstangeklagter | Zweitangeklagter | "Angeklagter!" | anonymer Angeklagter oder anonymes Opfer (in einer Anklageschrift) | anonyme Angeklagte oder anonymes Opfer (in einer Anklageschrift) :: accused; defendant | the accused (persons/parties); defendants | primary accused | second defendant; second accused | "Prisoner at the bar!" | (the person of) John Doe (in a bill of indictment) [Am.] | (the person of) Jane Doe (in a bill of indictment) [Am.]
47 * "anonyme Angeklagte oder anonymes Opfer" vs "Jane Doe"
48 * the first is likely to be considered an example, the latter not.
49 * "accused" ~ "the accused"
50 * Is that an example?
51 ? Be conservative in such cases?
52 > Abenddämmerung {f}; Niedergang {m}; Ausklang {m} | Lebensabend {m} :: sere and yellow leaf [fig.] | the sere and yellow leaf (of life/age) [fig.]
53 * latter is to be considered an example, even though only slightly longer
54 > echte Aale {pl}; Flussaale {pl}; Süßwasseraale {pl} (Anguilla) (zoologische Gattung) | Aal grün; grüner Aal [cook.] | Aal blau; blauer Aal [cook.] | Aal in Aspik; Aal in Gelee [cook.] :: freshwater eels; anguilla (zoological genus) | Boiled Eel served with Parsely Sauce | Eel au bleu; Eel steamed and served with Butter | Jellied Eel
55 > Abstand {m}; Zwischenraum {m} (zwischen) | Abstände {pl}; Zwischenräume {pl} | in 25 Meter Abstand | im Abstand von 5 Metern | lichter Abstand | den gebührenden Abstand halten | Abstand halten! | Ich folgte ihm mit einigem Abstand.; Ich folgte ihm in einiger Entfernung. :: distance (between) | distances | at a distance of 25 metres | 5 metres apart | clear distance | to keep the proper distance | Keep a distance! | I followed him at a distance.
56 * two synonymous phrases, only on has an infix