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. ", "Vermtl. ",
"vermutlich ", "vermutlich ",
"Vermutlich ", "Vermutlich ",
"wohl ",
"wahrscheinlich ", "wahrscheinlich ",
"Wohl ",
"Wahrscheinlich ", "Wahrscheinlich ",
"wohl ",
"Wohl ",
]; ];
const PERSINST_UNCERTAINTY_SUFFIXES = [ const PERSINST_UNCERTAINTY_SUFFIXES = [
@ -76,15 +76,26 @@ final class NodaUncertaintyHelper {
"gegen ", "gegen ",
"um ", "um ",
"verm. ", "verm. ",
"Verm. ",
"vermtl. ", "vermtl. ",
"Vermtl. ",
"vermutlich ", "vermutlich ",
"Vermutlich ",
"wohl ", "wohl ",
"wohl um ", "wohl um ",
"Wohl ",
"Wohl um ",
]; ];
const TIME_UNCERTAINTY_SUFFIXES = [ const TIME_UNCERTAINTY_SUFFIXES = [
"(?)", "(?)",
"?", "?",
" (ca.)",
" [ca.]",
" (circa)",
" [circa]",
" (verm.)",
" (vermutl.)",
" körül", " körül",
", um", ", um",
]; ];
@ -120,13 +131,20 @@ final class NodaUncertaintyHelper {
"vlt. ", "vlt. ",
"wohl ", "wohl ",
"Wohl ", "Wohl ",
"verm. ",
"vermut. ",
"vermtl. ", "vermtl. ",
"vermutlich ", "vermutlich ",
]; ];
const PLACE_UNCERTAINTY_SUFFIXES = [ const PLACE_UNCERTAINTY_SUFFIXES = [
"(?)", "(?)",
"(vermutl.)",
"[vermutl.]",
"(vermutlich)",
"[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. * @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. * @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. * @param string $name Persinst name.
* *