SpeciesFileGroup/taxonworks

View on GitHub
app/models/taxon_name_classification/latinized/gender/masculine.rb

Summary

Maintainability
A
0 mins
Test Coverage
class TaxonNameClassification::Latinized::Gender::Masculine < TaxonNameClassification::Latinized::Gender

  NOMEN_URI='http://purl.obolibrary.org/obo/NOMEN_0000048'.freeze

  def self.possible_genus_endings
    %w(us ops ites oides ides odes istes ornis colasour cephalus cheilus chilus crinus echinus gnatus rhamphus rhynchus somus stethus stomus cerus unculus)
  end

  def self.possible_species_endings
    %w(iensis ensis ianus anus culus ulus lus ger fer er is os ius us or cens ops)
  end

  def self.questionable_species_endings
    TaxonNameClassification::Latinized::Gender::Feminine.possible_species_endings +
        TaxonNameClassification::Latinized::Gender::Neuter.possible_species_endings -
        self.possible_species_endings
  end

  def self.disjoint_taxon_name_classes
    self.parent.disjoint_taxon_name_classes +
        self.collect_descendants_and_itself_to_s(TaxonNameClassification::Latinized::Gender::Feminine,
                                                 TaxonNameClassification::Latinized::Gender::Neuter)
  end

  def self.assignable
    true
  end


end