Module: LLM::Spell::Engine
Instance Method Summary collapse
-
#corrections ⇒ Array<String>
An array of unique corrections corresponding to the mistakes.
- #inspect ⇒ String
-
#mistakes ⇒ Array<String>
An array of unique spelling mistakes found in the text.
Instance Method Details
#corrections ⇒ Array<String>
Returns An array of unique corrections corresponding to the mistakes.
15 16 17 |
# File 'lib/llm/spell/engine.rb', line 15 def corrections response["corrections"].uniq end |
#inspect ⇒ String
21 22 |
# File 'lib/llm/spell/engine.rb', line 21 def inspect = "#<#{self.class}:0x#{object_id.to_s(16)} " \ "mistakes=#{mistakes.size} corrections=#{corrections.size}>" |
#mistakes ⇒ Array<String>
Returns An array of unique spelling mistakes found in the text.
8 9 10 |
# File 'lib/llm/spell/engine.rb', line 8 def mistakes response["mistakes"].uniq end |