Class: ProgramR::Gender

Inherits:
ReplaceTag show all
Defined in:
lib/programr/aiml_elements.rb

Constant Summary collapse

Map =
{
  /\b(she|he|him|his|(for|with|on|in|to) her|her)\b/i => -> (match) do
    case match[1].downcase
    when 'she' then 'he'
    when 'he' then 'she'
    when 'him', 'his' then 'her'
    when 'her' then 'his'
    else "#{match[2].downcase} him"
    end
  end
}

Method Summary

Methods inherited from ReplaceTag

#add, #execute, #initialize

Methods inherited from AimlTag

#inspect, #to_s

Constructor Details

This class inherits a constructor from ProgramR::ReplaceTag