adds plural form of words with māori origin

This commit is contained in:
Brandon Baker
2018-11-28 17:10:51 -07:00
committed by Brenda Wallace
parent e6007dc094
commit c0450477c6
2 changed files with 12 additions and 1 deletions

View File

@@ -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'

View File

@@ -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