Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

Commit

Permalink
Add plural version of US customary units
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkdp committed Apr 4, 2017
1 parent e2947ab commit b552e97
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ Reference
- Units (remember that you can use tab completion):
`A`, `ampere`, `B`, `becquerel`, `bit`, `bits`, `bps`, `Bq`, `byte`, `Byte`, `bytes`, `Bytes`, `C`, `candela`, `cd`, `coulomb`, `cup`, `d`, `day`, `days`, `deg`, `degree`, `degrees`, `electronvolt`, `eV`, `F`, `farad`, `feet`, `foot`, `ft`, `gallon`, `gal`, `g`, `gram`, `grams`, `gray`, `Gy`, `H`, `h`, `ha`, `hectare`, `henry`, `hertz`, `hour`, `hours`, `Hz`, `in`, `inch`, `inches`, `J`, `joule`, `joules`, `K`, `kat`, `katal`, `kelvin`, `L`, `lb`, `liter`, `liters`, `lm`, `lumen`, `lux`, `lx`, `m`, `meter`, `meters`, `mile`, `miles`, `min`, `minute`, `minutes`, `mol`, `mole`, `month`, `months`, `mph`, `N`, `newton`, `ohm`, `ounce`, `ounces`, `oz`, `Pa`, `pascal`, `pint`, `pound`, `pounds`, `rad`, `radian`, `radians`, `S`, `s`, `sec`, `second`, `seconds`, `siemens`, `sievert`, `Sv`, `T`, `t`, `tesla`, `tablespoon`, `tbsp`, `teaspoon`, `tsp`, `ton`, `tonne`, `tonnes`, `tons`, `V`, `volt`, `W`, `w`, `watt`, `watts`, `Wb`, `weber`, `week`, `weeks`, `yard`, `yards`, `yd`, `year`, `years`, `°`, `Ω`.
`A`, `ampere`, `B`, `becquerel`, `bit`, `bits`, `bps`, `Bq`, `byte`, `Byte`, `bytes`, `Bytes`, `C`, `candela`, `cd`, `coulomb`, `cup`, `cups`, `d`, `day`, `days`, `deg`, `degree`, `degrees`, `electronvolt`, `eV`, `F`, `farad`, `feet`, `foot`, `ft`, `gallon`, `gallons`, `gal`, `g`, `gram`, `grams`, `gray`, `Gy`, `H`, `h`, `ha`, `hectare`, `henry`, `hertz`, `hour`, `hours`, `Hz`, `in`, `inch`, `inches`, `J`, `joule`, `joules`, `K`, `kat`, `katal`, `kelvin`, `L`, `lb`, `liter`, `liters`, `lm`, `lumen`, `lux`, `lx`, `m`, `meter`, `meters`, `mile`, `miles`, `min`, `minute`, `minutes`, `mol`, `mole`, `month`, `months`, `mph`, `N`, `newton`, `ohm`, `ounce`, `ounces`, `oz`, `Pa`, `pascal`, `pint`, `pints`, `pound`, `pounds`, `rad`, `radian`, `radians`, `S`, `s`, `sec`, `second`, `seconds`, `siemens`, `sievert`, `Sv`, `T`, `t`, `tesla`, `tablespoon`, `tablespoons`, `tbsp`, `teaspoon`, `teaspoons`, `tsp`, `ton`, `tonne`, `tonnes`, `tons`, `V`, `volt`, `W`, `w`, `watt`, `watts`, `Wb`, `weber`, `week`, `weeks`, `yard`, `yards`, `yd`, `year`, `years`, `°`, `Ω`.
Install
-------
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "insect",
"version": "4.0.1",
"version": "4.0.2",
"description": "REPL-style scientific calculator with full support for physical units",
"author": "David Peter <[email protected]>",
"license": "MIT",
Expand Down
10 changes: 5 additions & 5 deletions src/Insect/Parser.purs
Original file line number Diff line number Diff line change
Expand Up @@ -237,11 +237,11 @@ imperialUnitDict = Dictionary
, foot ==> ["feet", "foot", "ft"]
, ounce ==> ["ounces", "ounce", "oz"]
, pound ==> ["pounds", "pound", "lb"]
, gallon ==> ["gallon", "gal"]
, pint ==> ["pint"]
, cup ==> ["cup"]
, tablespoon ==> ["tablespoon", "tbsp"]
, teaspoon ==> ["teaspoon", "tsp"]
, gallon ==> ["gallons", "gallon", "gal"]
, pint ==> ["pints", "pint"]
, cup ==> ["cups", "cup"]
, tablespoon ==> ["tablespoons", "tablespoon", "tbsp"]
, teaspoon ==> ["teaspoons", "teaspoon", "tsp"]
]

-- | Parse an imperial unit like `ft` of `mile`.
Expand Down

0 comments on commit b552e97

Please sign in to comment.