Class: Kotoshu::Languages::Russian::GrammarRules::VerbalAspectRule

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

Overview

Rule: Verbal aspect consistency

Constant Summary collapse

IMPERFECTIVE_SUFFIXES =
%w[ать ять].freeze
PERFECTIVE_SUFFIXES =
%w[ить по].freeze

Instance Attribute Summary

Attributes inherited from Rule

#description, #id, #name

Instance Method Summary collapse

Constructor Details

#initializeVerbalAspectRule

Returns a new instance of VerbalAspectRule.



276
277
278
# File 'lib/kotoshu/languages/ru/language.rb', line 276

def initialize
  super('RU_VERBAL_ASPECT', 'Verbal Aspect', 'Russian verbs should use consistent aspect (imperfective/perfective).')
end

Instance Method Details

#check(tokens) ⇒ Object



280
281
282
283
# File 'lib/kotoshu/languages/ru/language.rb', line 280

def check(tokens)
  # Simplified implementation
  []
end