duckling/Duckling
Steven Troxler 6db071069b Numeral/ES: Style fixes - names, order, etc
Summary:
Whle looking into fixing https://github.com/facebook/duckling/issues/380
I was having a bit of trouble navigating the existing rules and guessing
what is / is not supported.

This diff refactors the Numeral/ES code to be easier to navigate:
- rename all the `ruleNumeral{1,2,3,4,5,6}` rules to be descriptive
- changes the order to be themed from small to large numbers, and
  make sure the order of defines matches the order of rules at the end
  of the module
- use [20 .. 90] instead of manually specifying the same list out-of-order

Reviewed By: chessai

Differential Revision: D27858134

fbshipit-source-id: b13983d75b36bb4e2b387ef06fe61066d81ae19a
2021-04-23 09:48:06 -07:00
..
AmountOfMoney Add more variants of egp to EN and AR AmountOfMoney dimension (#590) 2021-04-07 12:31:41 -07:00
CreditCardNumber Relicense to BSD3 2019-05-22 10:46:39 -07:00
Dimensions Initialise Catalan language with Numeral 2021-04-08 14:47:02 -07:00
Distance Distance - introduce interval rules 2021-02-04 12:02:32 -08:00
DistanceUnits Relicense to BSD3 2019-05-22 10:46:39 -07:00
Duration Duration/RU: For non-int times, use the coarsest grain 2021-04-21 13:32:38 -07:00
Email Add type=value to JSON response for Email, PhoneNumber and Url 2020-03-18 17:04:42 -07:00
Engine Relicense to BSD3 2019-05-22 10:46:39 -07:00
Numeral Numeral/ES: Style fixes - names, order, etc 2021-04-23 09:48:06 -07:00
Ordinal NL: Fix spelling of ‘achttien’ (18) (#602) 2021-04-19 18:01:33 -07:00
PhoneNumber Add type=value to JSON response for Email, PhoneNumber and Url 2020-03-18 17:04:42 -07:00
Quantity Quantity/EN: Support k.g k.g. (#570) 2021-02-03 12:46:27 -08:00
Ranking Time/EN: Allow latent match for <part-of-day> <latent-time-of-day> 2021-04-19 13:05:50 -07:00
Regex parse latent year intervals 2021-01-29 16:33:56 -08:00
Rules Add Ordinal dimension to CA (Catalan) locale 2021-04-09 13:05:19 -07:00
Temperature EN/FR support temperature with decimal values (#408) 2019-09-17 10:34:25 -07:00
Testing Relicense to BSD3 2019-05-22 10:46:39 -07:00
Time Time/EN: Allow dashes in spelled-out times 2021-04-22 11:47:28 -07:00
TimeGrain Duration/EN: fix lint errors 2021-04-21 13:32:37 -07:00
Types Relicense to BSD3 2019-05-22 10:46:39 -07:00
Url Add type=value to JSON response for Email, PhoneNumber and Url 2020-03-18 17:04:42 -07:00
Volume Volume - extend interval support 2021-02-04 12:02:32 -08:00
Api.hs Remove dependency on Data.Some (#533) 2020-09-28 01:33:01 -07:00
Core.hs Remove dependency on Data.Some (#533) 2020-09-28 01:33:01 -07:00
Debug.hs Remove dependency on Data.Some (#533) 2020-09-28 01:33:01 -07:00
Dimensions.hs Initialise Catalan language with Numeral 2021-04-08 14:47:02 -07:00
Engine.hs ghc88x compat (#550) 2020-11-12 13:47:46 -08:00
Locale.hs Initialise Catalan language with Numeral 2021-04-08 14:47:02 -07:00
Region.hs Add a new Arabic locale (EG) (#554) 2020-12-15 11:33:40 -08:00
Resolve.hs Relicense to BSD3 2019-05-22 10:46:39 -07:00
Rules.hs Initialise Catalan language with Numeral 2021-04-08 14:47:02 -07:00
Types.hs Add Time dimension for RU language 2021-02-12 12:02:44 -08:00