dimus-taxamatch_rb 0.5.5 → 0.5.6

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -33,7 +33,7 @@ or
33
33
 
34
34
  * preparse names for the matching (necessary for large databases of scientific names)
35
35
 
36
- p = Taxamatch::Parser.new
36
+ p = Taxamatch::Atomizer.new
37
37
  parsed_name1 = p.parse('Monacanthus fronticinctus Günther 1867 sec. Eschmeyer 2004')
38
38
  parsed_name2 = p.parse('Monacanthus fronticinctus (Gunther, 1867)')
39
39
 
@@ -3,7 +3,7 @@ require 'biodiversity'
3
3
 
4
4
  module Taxamatch
5
5
 
6
- class Parser
6
+ class Atomizer
7
7
  def initialize
8
8
  @parser = ScientificNameParser.new
9
9
  @parsed_raw = nil
data/lib/taxamatch_rb.rb CHANGED
@@ -3,7 +3,7 @@ $:.unshift(File.dirname(__FILE__)) unless
3
3
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
4
4
  # $:.unshift('taxamatch_rb')
5
5
  require 'taxamatch_rb/damerau_levenshtein_mod'
6
- require 'taxamatch_rb/parser'
6
+ require 'taxamatch_rb/atomizer'
7
7
  require 'taxamatch_rb/normalizer'
8
8
  require 'taxamatch_rb/phonetizer'
9
9
  require 'taxamatch_rb/authmatch'
@@ -15,7 +15,7 @@ module Taxamatch
15
15
  class Base
16
16
 
17
17
  def initialize
18
- @parser = Taxamatch::Parser.new
18
+ @parser = Taxamatch::Atomizer.new
19
19
  @dlm = Taxamatch::DamerauLevenshteinMod.new
20
20
  end
21
21
 
@@ -16,7 +16,7 @@ end
16
16
 
17
17
  describe 'Parser' do
18
18
  before(:all) do
19
- @parser = Taxamatch::Parser.new
19
+ @parser = Taxamatch::Atomizer.new
20
20
  end
21
21
 
22
22
  it 'should parse uninomials' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dimus-taxamatch_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Mozzherin
@@ -44,10 +44,10 @@ extra_rdoc_files:
44
44
  files:
45
45
  - README.rdoc
46
46
  - lib/taxamatch_rb.rb
47
+ - lib/taxamatch_rb/atomizer.rb
47
48
  - lib/taxamatch_rb/authmatch.rb
48
49
  - lib/taxamatch_rb/damerau_levenshtein_mod.rb
49
50
  - lib/taxamatch_rb/normalizer.rb
50
- - lib/taxamatch_rb/parser.rb
51
51
  - lib/taxamatch_rb/phonetizer.rb
52
52
  - spec/damerau_levenshtein_mod_test.txt
53
53
  - spec/spec.opts