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.



345
346
347
# File 'lib/kotoshu/languages/ja/language.rb', line 345

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

Instance Method Details

#check(_tokens) ⇒ Object



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

def check(_tokens)
  # Simplified implementation
  []
end