Time/DE: Don't parse "so"

Summary:
"so" is an adverb in German: https://github.com/wit-ai/wit/issues/1860
It's also a short form for "Sonntag" (Sunday); making the dot mandatory.

Reviewed By: haoxuany

Differential Revision: D22900791

fbshipit-source-id: 8dc873f79a21ca2add074f9c664e84fae56f1e67
This commit is contained in:
Julien Odent 2020-08-03 12:32:40 -07:00 committed by Facebook GitHub Bot
parent 4846641456
commit 3d5e1c3bad
2 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@ negativeCorpus = (context, testOptions, examples)
[ "ein Hotel"
, "ein Angebot"
, "nächsten 5"
, "so"
]
allExamples :: [Example]

View File

@ -55,7 +55,7 @@ ruleDaysOfWeek = mkRuleDaysOfWeek
, ( "Donnerstag", "donn?erstag|do\\.?" )
, ( "Freitag" , "freitags?|fr\\.?" )
, ( "Samstag" , "samstags?|sonnabends?|sa\\.?" )
, ( "Sonntag" , "sonntags?|so\\.?" )
, ( "Sonntag" , "sonntags?|so\\." )
]
ruleMonths :: [Rule]