Class: Kotoshu::Languages::Spanish::GrammarRules::GenderAgreementRule

Inherits:
Rule
  • Object
show all
Defined in:
lib/kotoshu/languages/es/language.rb

Overview

Rule: Gender agreement

Instance Attribute Summary

Attributes inherited from Rule

#description, #id, #name

Instance Method Summary collapse

Constructor Details

#initializeGenderAgreementRule

Returns a new instance of GenderAgreementRule.



318
319
320
# File 'lib/kotoshu/languages/es/language.rb', line 318

def initialize
  super('ES_GENDER_AGREEMENT', 'Gender Agreement', 'Nouns and adjectives must agree in gender.')
end

Instance Method Details

#check(_tokens) ⇒ Object



322
323
324
325
# File 'lib/kotoshu/languages/es/language.rb', line 322

def check(_tokens)
  # Simplified implementation
  []
end