Sha256: 7afc54727f8ed65f84350264bf6af173fffdee243a2d839d29574ac74c2a50f1
Contents?: true
Size: 780 Bytes
Versions: 1
Compression:
Stored size: 780 Bytes
Contents
# encoding: UTF-8 grammar ScientificNameCanonical include ScientificNameClean include ScientificNameDirty rule composite_scientific_name name_part_with_garbage end rule name_part_with_garbage a:species_name space b:[^ш]+ { def value a.value end def canonical a.canonical end def details a.details.merge(:name_part_verbatim => a.text_value, :auth_part_verbatim => b.text_value) end } / a:name_part space b:[^ш]+ { def value a.value end def canonical a.canonical end def details a.details.merge(:name_part_verbatim => a.text_value, :auth_part_verbatim => b.text_value) end } end rule garbage [.]* end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dimus-biodiversity-0.0.13 | lib/biodiversity/parser/scientific_name_canonical.treetop |