Module: Strings::Inflection::Nouns
- Defined in:
- lib/strings/inflection/nouns.rb
Class Method Summary collapse
-
.plurals ⇒ Array[String]
private
A list of plural rules.
-
.singulars ⇒ Array[String]
private
A list of singular rules.
-
.to_stem(list, suffix) ⇒ Array[String]
private
Remove suffix from a word.
-
.uncountable ⇒ Array[String]
private
A set of uncoutanble nouns.
Class Method Details
.plurals ⇒ Array[String]
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A list of plural rules
709 710 711 |
# File 'lib/strings/inflection/nouns.rb', line 709 def plurals @plurals end |
.singulars ⇒ Array[String]
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A list of singular rules
699 700 701 |
# File 'lib/strings/inflection/nouns.rb', line 699 def singulars @singulars end |
.to_stem(list, suffix) ⇒ Array[String]
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Remove suffix from a word
12 13 14 |
# File 'lib/strings/inflection/nouns.rb', line 12 def self.to_stem(list, suffix) list.map { |word| word[0...-suffix.size] } end |
.uncountable ⇒ Array[String]
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
A set of uncoutanble nouns
689 690 691 |
# File 'lib/strings/inflection/nouns.rb', line 689 def uncountable @uncountable end |