Module: ScientificNameClean::ValidNameLetters0

Defined in:
lib/biodiversity/parser/scientific_name_clean.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
# File 'lib/biodiversity/parser/scientific_name_clean.rb', line 8296

def value
  res = ""
  text_value.split("").each do |l|
    l = "ae" if l == "æ"
    l = "oe" if l == "œ"
    # We normalize ë as well. It is legal in botanical code, but it
    # is beneficial to normalize it for the reconsiliation purposes
    l = "e" if l == "ë"
    res << l
  end
  res
end