Add Estonian language

Closes: #1646
This commit is contained in:
eikek
2022-10-31 23:38:41 +01:00
parent 54ee80932c
commit c0feb13f63
9 changed files with 78 additions and 2 deletions

View File

@ -259,4 +259,32 @@ class DateFindTest extends FunSuite {
)
)
}
test("find estonian dates") {
assertEquals(
DateFind
.findDates(
"Some text in estonian 21 juuli 2022 and stuff",
Language.Estonian
)
.toVector,
Vector(
NerDateLabel(
LocalDate.of(2022, 7, 21),
NerLabel("21 juuli 2022", NerTag.Date, 22, 35)
)
)
)
assertEquals(
DateFind
.findDates("19.11.21", Language.Estonian)
.toVector,
Vector(
NerDateLabel(
LocalDate.of(2021, 11, 19),
NerLabel("19.11.21", NerTag.Date, 0, 8)
)
)
)
}
}