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.



286
287
288
# File 'lib/kotoshu/languages/ru/language.rb', line 286

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

Instance Method Details

#check(_tokens) ⇒ Object



290
291
292
293
# File 'lib/kotoshu/languages/ru/language.rb', line 290

def check(_tokens)
  # Simplified implementation
  []
end