0.0
No commit activity in last 3 years
No release in over 3 years
The purpose of Taxamatch gem is to facilitate fuzzycomparison of two scientific name renderings to findout if they actually point to the same scientific name.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
~> 0.8
~> 2.0
~> 10.4
~> 3.2
~> 0.30

Runtime

 Project Readme

taxamatch_rb

DOI Gem Version Continuous Integration Status Coverage Status CodePolice Dependency Status

taxamatch_rb is a ruby implementation of Taxamatch algorithms developed by Tony Rees:

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"

# To find version
Taxamatch.version

# To start new instance of taxamatch
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-2015 Marine Biological Laboratory. See LICENSE for details.