diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 08def8d41..e22f9765a 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -22,7 +22,7 @@ ActiveSupport::Inflector.inflections do |inflect| inflect.plural 'agave', 'agave' inflect.plural 'alfalfa', 'alfalfa' inflect.plural 'allspice', 'allspice' - inflect.plural 'aloe vera', 'arugula' + inflect.plural 'aloe vera', 'aloe vera' inflect.plural 'amaranth', 'amaranth' inflect.plural 'Amelanchier', 'Amelanchier' inflect.plural 'anise', 'anise' @@ -101,6 +101,7 @@ ActiveSupport::Inflector.inflections do |inflect| inflect.plural 'guava', 'guava' inflect.plural 'hemp', 'hemp' inflect.plural 'hibiscus', 'hibiscuses' + inflect.plural 'hīnau', 'hīnau' inflect.plural 'hyssop', 'hyssop' inflect.plural 'jabuticaba', 'jabuticaba' inflect.plural 'jasmine', 'jasmine' @@ -114,6 +115,7 @@ ActiveSupport::Inflector.inflections do |inflect| inflect.plural 'kiwifruit', 'kiwifruit' inflect.plural 'kohlrabi', 'kohlrabies' inflect.plural 'komatsuna', 'komatsuna' + inflect.plural 'kūmara', 'kūmara' inflect.plural "lady's bedstraw", "lady's bedstraw" inflect.plural 'lavender', 'lavender' inflect.plural 'lemon myrtle', 'lemon myrtle' @@ -156,8 +158,10 @@ ActiveSupport::Inflector.inflections do |inflect| inflect.plural 'potato matariki', 'potato matariki' inflect.plural 'potato Taranaki', 'potato Taranaki' inflect.plural 'Prince of Wales', 'Prince of Wales' + inflect.plural 'pūhā', 'pūhā' inflect.plural 'purslane', 'purslane' inflect.plural 'quinoa', 'quinoa' + inflect.plural 'radicchio', 'radicchio' inflect.plural 'rainbow chard', 'rainbow chard' inflect.plural 'rapeseed', 'rapeseed' inflect.plural 'rapini', 'rapini' @@ -174,6 +178,7 @@ ActiveSupport::Inflector.inflections do |inflect| inflect.plural 'sassafras', 'sassafras' inflect.plural 'sesame', 'sesame' inflect.plural 'shiitake', 'shiitake' + inflect.plural 'shiso', 'shiso' inflect.plural 'smallage', 'smallage' inflect.plural 'sorghum', 'sorghum' inflect.plural 'soybean', 'soybean' diff --git a/spec/features/crops/inflections_spec.rb b/spec/features/crops/inflections_spec.rb index 89c9de9f1..e39cf572c 100644 --- a/spec/features/crops/inflections_spec.rb +++ b/spec/features/crops/inflections_spec.rb @@ -50,4 +50,10 @@ feature "irregular crop inflections" do expect("potato matariki".pluralize).to eq "potato matariki" expect("spinach Santana".pluralize).to eq "spinach Santana" end + + scenario "crops of Māori origin" do + expect("kūmara".pluralize).to eq "kūmara" + expect("pūhā".pluralize).to eq "pūhā" + end + end