Class: Kotoshu::Languages::Japanese::GrammarRules::ParticleRule

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

Overview

Rule: Particle usage (wa vs ga)

Instance Attribute Summary

Attributes inherited from Rule

#description, #id, #name

Instance Method Summary collapse

Constructor Details

#initializeParticleRule

Returns a new instance of ParticleRule.



348
349
350
# File 'lib/kotoshu/languages/ja/language.rb', line 348

def initialize
  super('JA_PARTICLE_USAGE', 'Particle Usage', 'Correct usage of topic marker は vs subject marker が.')
end

Instance Method Details

#check(tokens) ⇒ Object



352
353
354
355
# File 'lib/kotoshu/languages/ja/language.rb', line 352

def check(tokens)
  # Simplified implementation
  []
end