NL: Fix spelling of ‘achttien’ (18) (#602)

Summary:
The Dutch numeral and ordinal rules contained a spelling mistake: [‘achttien’](https://en.wiktionary.org/wiki/achttien) (18) was spelt as ‘achtien’ (note the single *t*).

This PR fixes this spelling mistake everywhere in the code base.

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

Reviewed By: patapizza

Differential Revision: D27859001

Pulled By: chessai

fbshipit-source-id: 8da0d8b099d49cf6207d4066cee1fc7da68a418e
This commit is contained in:
Splinter Suidman 2021-04-19 17:56:07 -07:00 committed by Facebook GitHub Bot
parent 586522b649
commit 933c287854
3 changed files with 5 additions and 5 deletions

View File

@ -65,7 +65,7 @@ allExamples = concat
] ]
, examples (NumeralValue 18) , examples (NumeralValue 18)
[ "18" [ "18"
, "achtien" , "achttien"
] ]
, examples (NumeralValue 1.1) , examples (NumeralValue 1.1)
[ "1,1" [ "1,1"

View File

@ -223,7 +223,7 @@ zeroNineteenMap = HashMap.fromList
, ("vijftien", 15) , ("vijftien", 15)
, ("zestien", 16) , ("zestien", 16)
, ("zeventien", 17) , ("zeventien", 17)
, ("achtien", 18) , ("achttien", 18)
, ("negentien", 19) , ("negentien", 19)
] ]
@ -231,7 +231,7 @@ ruleInteger :: Rule
ruleInteger = Rule ruleInteger = Rule
{ name = "integer (0..19)" { name = "integer (0..19)"
, pattern = , pattern =
[ regex "(geen|nul|niks|een|één|twee|drie|vier|vijftien|vijf|zestien|zes|zeventien|zeven|achtien|acht|negentien|negen|tien|elf|twaalf|dertien|veertien)" [ regex "(geen|nul|niks|een|één|twee|drie|vier|vijftien|vijf|zestien|zes|zeventien|zeven|achttien|acht|negentien|negen|tien|elf|twaalf|dertien|veertien)"
] ]
, prod = \tokens -> case tokens of , prod = \tokens -> case tokens of
(Token RegexMatch (GroupMatch (match:_)):_) -> (Token RegexMatch (GroupMatch (match:_)):_) ->

View File

@ -43,7 +43,7 @@ zeroNineteenMap = HashMap.fromList
, ("vijftiende", 15) , ("vijftiende", 15)
, ("zestiende", 16) , ("zestiende", 16)
, ("zeventiende", 17) , ("zeventiende", 17)
, ("achtiende", 18) , ("achttiende", 18)
, ("negentiende", 19) , ("negentiende", 19)
] ]
@ -51,7 +51,7 @@ ruleOrdinalsFirstth :: Rule
ruleOrdinalsFirstth = Rule ruleOrdinalsFirstth = Rule
{ name = "ordinals (first..19th)" { name = "ordinals (first..19th)"
, pattern = , pattern =
[ regex "(eerste|tweede|derde|vierde|vijfde|zeste|zevende|achtste|negende|tiende|elfde|twaalfde|veertiende|vijftiende|zestiende|zeventiende|achtiende|negentiende)" [ regex "(eerste|tweede|derde|vierde|vijfde|zeste|zevende|achtste|negende|tiende|elfde|twaalfde|veertiende|vijftiende|zestiende|zeventiende|achttiende|negentiende)"
] ]
, prod = \tokens -> case tokens of , prod = \tokens -> case tokens of
(Token RegexMatch (GroupMatch (match:_)):_) -> (Token RegexMatch (GroupMatch (match:_)):_) ->