<commit_before>= taxamatch_rb

Taxamatch_Rb is a ruby implementation of Taxamatch algorithms developed by <NAME>: 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.8.7 and 1.9.1 and higher

== Installation

    sudo gem install dimus-taxamatch_rb --source http://gems.github.com

or
    sudo gem sources -a http://gems.github.com #(you only have to do this once)
    sudo gem install dimus-taxamatch_rb

== Usage

    require 'rubygems' #not needed for ruby > 1.9.1
    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 <NAME>. See LICENSE for details.
<commit_msg>changed install instruction<commit_after>= taxamatch_rb

Taxamatch_Rb is a ruby implementation of Taxamatch algorithms developed by <NAME>: 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.8.7 and 1.9.1 and higher

== Installation

    sudo gem install taxamatch_rb

== Usage

    require 'rubygems' #not needed for ruby > 1.9.1
    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 <NAME>. See LICENSE for details.

{'fraction_non_alphanumeric': 0.09392265193370165, 'fraction_numerical': 0.022651933701657457, 'mean_word_length': 4.172857142857143, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3038959', 'n_tokens_mistral': 1277, 'n_tokens_neox': 1170, 'n_words': 369}