module ScientificNameClean::AuthorWord3

Public Instance Methods

details() click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 5413
def details
  {:author => [value]}
end
pos() click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 5409
def pos
  {interval.begin => ["author_word", interval.end]}
end
value() click to toggle source
# File lib/biodiversity/parser/scientific_name_clean.rb, line 5403
def value
  text_value.gsub(/([\p{Lu}]{3,})/) do |match|
    UnicodeUtils.titlecase(match)
  end
end