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.



307
308
309
# File 'lib/kotoshu/languages/es/language.rb', line 307

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

Instance Method Details

#check(tokens) ⇒ Object



311
312
313
314
# File 'lib/kotoshu/languages/es/language.rb', line 311

def check(tokens)
  # Simplified implementation
  []
end