ES/Ordinal: Fixes "tercero" pattern regex (#477)

Summary:
Missing "tercer" regex in rule

Pull Request resolved: https://github.com/facebook/duckling/pull/477

Reviewed By: patapizza

Differential Revision: D24934794

Pulled By: chessai

fbshipit-source-id: a51f6fe3187749885784bfaacfee09cf26a8df6d
This commit is contained in:
Hernan Barijhoff 2020-11-19 13:46:02 -08:00 committed by Facebook GitHub Bot
parent d0a6f8114c
commit f053b14676
2 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,11 @@ allExamples = concat
, "segunda"
, "segundos"
]
, examples (OrdinalData 3)
[ "tercero"
, "tercera"
, "terceros"
]
, examples (OrdinalData 10)
[ "decimo"
, "decimas"

View File

@ -79,7 +79,7 @@ ruleOrdinalsPrimero :: Rule
ruleOrdinalsPrimero = Rule
{ name = "ordinals (primero..10)"
, pattern =
[ regex "((primer|segund|cuart|quint|sext|s[eé]ptim|octav|noven|d[eé]cim)(os?|as?)|(prim|terc)er)"
[ regex "((primer|segund|tercer|cuart|quint|sext|s[eé]ptim|octav|noven|d[eé]cim)(os?|as?)|(prim|terc)er)"
]
, prod = \tokens -> case tokens of
(Token RegexMatch (GroupMatch (match:_)):_) ->