Extend lists of uncertainty prefixes and suffixes

Close #10, close #11, close #12
This commit is contained in:
Joshua Ramon Enslin 2022-04-02 19:31:53 +02:00
parent ad6b4728f5
commit 3f26666123
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -37,10 +37,10 @@ final class NodaUncertaintyHelper {
"Vermtl. ",
"vermutlich ",
"Vermutlich ",
"wohl ",
"wahrscheinlich ",
"Wohl ",
"Wahrscheinlich ",
"wohl ",
"Wohl ",
];
const PERSINST_UNCERTAINTY_SUFFIXES = [
@ -76,15 +76,26 @@ final class NodaUncertaintyHelper {
"gegen ",
"um ",
"verm. ",
"Verm. ",
"vermtl. ",
"Vermtl. ",
"vermutlich ",
"Vermutlich ",
"wohl ",
"wohl um ",
"Wohl ",
"Wohl um ",
];
const TIME_UNCERTAINTY_SUFFIXES = [
"(?)",
"?",
" (ca.)",
" [ca.]",
" (circa)",
" [circa]",
" (verm.)",
" (vermutl.)",
" körül",
", um",
];
@ -120,13 +131,20 @@ final class NodaUncertaintyHelper {
"vlt. ",
"wohl ",
"Wohl ",
"verm. ",
"vermut. ",
"vermtl. ",
"vermutlich ",
];
const PLACE_UNCERTAINTY_SUFFIXES = [
"(?)",
"(vermutl.)",
"[vermutl.]",
"(vermutlich)",
"[vermutlich]",
"(wohl)",
"[wohl]",
"?",
];
@ -178,7 +196,8 @@ final class NodaUncertaintyHelper {
}
/**
* Attempts guessing whether time is uncertain.
* Attempts guessing whether time is uncertain. Returns true if the name
* indicates certainty, false if it indicates uncertainty.
*
* @param string $zeit_name Time name.
*
@ -240,7 +259,8 @@ final class NodaUncertaintyHelper {
}
/**
* Attempts guessing whether place is uncertain.
* Attempts guessing whether place is uncertain. Returns true if the name
* indicates certainty, false if it indicates uncertainty.
*
* @param string $ort_name Place name.
*
@ -300,7 +320,8 @@ final class NodaUncertaintyHelper {
}
/**
* Attempts guessing whether persinst is uncertain.
* Attempts guessing whether persinst is uncertain. Returns true if the name
* indicates certainty, false if it indicates uncertainty.
*
* @param string $name Persinst name.
*