79
80
81
82
83
84
85
86
87
88
89
90
|
# File 'lib/Olib/dictionary/dictionary.rb', line 79
def Dictionary.gems
re = {}
re[:appraise] = {}
re[:appraise][:gemshop] = /inspects it carefully before saying, "I'll give you ([0-9]+) for it if you want to sell/
re[:appraise][:player] = /You estimate that the ([a-zA-Z '-]+) is of ([a-zA-Z '-]+) quality and worth approximately ([0-9]+) silvers/
re[:appraise][:failure] = /As best you can tell, the ([a-zA-Z '-]+) is of average quality/
re[:singularize] = Proc.new do |str|
str.gsub(/ies$/, 'y').gsub(/zes$/,'z').gsub(/s$/,'').gsub(/large |medium |containing |small |tiny |some /, '').strip
end
re
end
|