mirror of
https://github.com/facebook/duckling.git
synced 2024-11-28 08:34:46 +03:00
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:
parent
d0a6f8114c
commit
f053b14676
@ -33,6 +33,11 @@ allExamples = concat
|
||||
, "segunda"
|
||||
, "segundos"
|
||||
]
|
||||
, examples (OrdinalData 3)
|
||||
[ "tercero"
|
||||
, "tercera"
|
||||
, "terceros"
|
||||
]
|
||||
, examples (OrdinalData 10)
|
||||
[ "decimo"
|
||||
, "decimas"
|
||||
|
@ -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:_)):_) ->
|
||||
|
Loading…
Reference in New Issue
Block a user