class ChatCorrect::CommonVerbMistake
Constants
- COMMON_VERB_MISTAKES
Attributes
token_a[R]
token_b[R]
Public Class Methods
new(token_a:, token_b:)
click to toggle source
# File lib/chat_correct/common_verb_mistake.rb, line 52 def initialize(token_a:, token_b:) @token_a = token_a @token_b = token_b end
Public Instance Methods
exists?()
click to toggle source
# File lib/chat_correct/common_verb_mistake.rb, line 57 def exists? COMMON_VERB_MISTAKES[token_a].eql?(token_b) || COMMON_VERB_MISTAKES[token_b].eql?(token_a) end