Sha256: 66ce7d2d416a4220756f6bad8b180e5ff17cb14f67d6ba0a0f0d23a21e6ddf0a
Contents?: true
Size: 1.6 KB
Versions: 2
Compression:
Stored size: 1.6 KB
Contents
= taxamatch_rb Taxamatch_Rb is a ruby implementation of Taxamatch algorithms developed by Tony Rees: http://www.cmar.csiro.au/datacentre/taxamatch.htm The purpose of Taxamatch gem is to facilitate fuzzy comparison of two scientific name renderings to find out if they actually point to the same scientific name. require 'taxamatch_rb' tm = Taxamatch::Base.new tm.taxamatch('Homo sapien', 'Homo sapiens') #returns true tm.taxamatch('Homo sapiens Linnaeus', 'Hommo sapens (Linn. 1758)') #returns true tm.taxamatch('Homo sapiens Mozzherin', 'Homo sapiens Linnaeus') #returns false Taxamatch_Rb is compatible with ruby versions 1.9.1 and higher == Installation sudo gem install taxamatch_rb == Usage require 'taxamatch_rb' tm = Taxamatch::Base.new * compare full scientific names tm.taxamatch('Hommo sapiens L.', 'Homo sapiens Linnaeus') * preparse names for the matching (necessary for large databases of scientific names) p = Taxamatch::Atomizer.new parsed_name1 = p.parse('Monacanthus fronticinctus Günther 1867 sec. Eschmeyer 2004') parsed_name2 = p.parse('Monacanthus fronticinctus (Gunther, 1867)') * compare preparsed names tm.taxamatch_preparsed(parsed_name1, parsed_name2) * compare genera tm.match_genera('Monacanthus', 'MONOCANTUS') * compare species tm.match_species('fronticinctus', 'frontecinctus') * compare authors and years Taxamatch::Authmatch.authmatch(['Linnaeus'], ['L','Muller'], [1786], [1787]) You can find more examples in spec section of the code == Copyright Copyright (c) 2009 Dmitry Mozzherin. See LICENSE for details.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
taxamatch_rb-0.9.10 | README.rdoc |
taxamatch_rb-0.9.9 | README.rdoc |