biodiversity19 1.0.13 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
1.0.14 -- canonical forms had allowed ë as a character until now. After this
|
2
|
+
version the only utf-8 character allowed in canonical forms should be the
|
3
|
+
multiplication sign for hybrids.
|
4
|
+
|
1
5
|
1.0.13 -- canonical forms for cf. aff. qualifiers are modified: canonical for
|
2
6
|
'Aus cf. bus' is now 'Aus bus'; canonical for 'Aus aff. bus' is now 'Aus'.
|
3
7
|
Ranks at the end of the name like 'var', 'ssp', 'spp' are considered junk and
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.14
|
@@ -1167,9 +1167,9 @@ grammar ScientificNameClean
|
|
1167
1167
|
text_value.split('').each do |l|
|
1168
1168
|
l = 'ae' if l == 'æ'
|
1169
1169
|
l = 'oe' if l == 'œ'
|
1170
|
-
#
|
1171
|
-
#
|
1172
|
-
|
1170
|
+
# We normalize ë as well. It is legal in botanical code, but it
|
1171
|
+
# is beneficial to normalize it for the reconsiliation purposes
|
1172
|
+
l = 'e' if l == 'ë'
|
1173
1173
|
res << l
|
1174
1174
|
end
|
1175
1175
|
res
|
@@ -131,9 +131,9 @@ describe ScientificNameClean do
|
|
131
131
|
|
132
132
|
it 'should parse names with e-umlaut' do
|
133
133
|
sn = 'Kalanchoë tuberosa'
|
134
|
-
canonical(sn).should == '
|
134
|
+
canonical(sn).should == 'Kalanchoe tuberosa'
|
135
135
|
sn = 'Isoëtes asplundii H. P. Fuchs'
|
136
|
-
canonical(sn).should == '
|
136
|
+
canonical(sn).should == 'Isoetes asplundii'
|
137
137
|
end
|
138
138
|
|
139
139
|
it 'should parse infragenus (ICZN code)' do
|
@@ -555,7 +555,7 @@ describe ScientificNameClean do
|
|
555
555
|
sn = 'Flexibacter elegans Soriano 1945, non Lewin 1969'
|
556
556
|
details(sn).should == [{:genus=>{:string=>"Flexibacter"}, :species=>{:string=>"elegans", :authorship=>"Soriano 1945, non Lewin 1969", :basionymAuthorTeam=>{:authorTeam=>"Soriano", :author=>["Soriano"], :year=>"1945"}}}]
|
557
557
|
sn = 'Schottera nicaeënsis (J.V. Lamouroux ex Duby) Guiry & Hollenberg'
|
558
|
-
details(sn).should == [{:genus=>{:string=>"Schottera"}, :species=>{:string=>"
|
558
|
+
details(sn).should == [{:genus=>{:string=>"Schottera"}, :species=>{:string=>"nicaeensis", :authorship=>"(J.V. Lamouroux ex Duby) Guiry & Hollenberg", :combinationAuthorTeam=>{:authorTeam=>"Guiry & Hollenberg", :author=>["Guiry", "Hollenberg"]}, :basionymAuthorTeam=>{:authorTeam=>"J.V. Lamouroux", :author=>["J.V. Lamouroux"], :exAuthorTeam=>{:authorTeam=>"Duby", :author=>["Duby"]}}}}]
|
559
559
|
sn = 'Deschampsia cespitosa ssp pumila'
|
560
560
|
details(sn).should == [{:genus=>{:string=>"Deschampsia"}, :species=>{:string=>"cespitosa"}, :infraspecies=>[{:string=>"pumila", :rank=>"ssp"}]}]
|
561
561
|
end
|
data/spec/parser/test_data.txt
CHANGED
@@ -55,7 +55,7 @@ Platypus bicaudatulus Schedl, 1935h|{"scientificName":{"parsed":true, "parser_ve
|
|
55
55
|
Pseudocercospora dendrobii U. Braun & Crous|{"scientificName":{"parsed":true, "parser_version":"test_version", "parser_run":1,"verbatim":"Pseudocercospora dendrobii U. Braun & Crous","normalized":"Pseudocercospora dendrobii U. Braun et Crous","canonical":"Pseudocercospora dendrobii","hybrid":false,"details":[{"genus":{"string":"Pseudocercospora"},"species":{"string":"dendrobii","authorship":"U. Braun & Crous","basionymAuthorTeam":{"authorTeam":"U. Braun & Crous","author":["U. Braun","Crous"]}}}],"positions":{"0":["genus",16],"17":["species",26],"27":["author_word",29],"30":["author_word",35],"38":["author_word",43]}}}
|
56
56
|
Pseudocercospora dendrobii U. Braun et Crous|{"scientificName":{"parsed":true, "parser_version":"test_version", "parser_run":1,"verbatim":"Pseudocercospora dendrobii U. Braun et Crous","normalized":"Pseudocercospora dendrobii U. Braun et Crous","canonical":"Pseudocercospora dendrobii","hybrid":false,"details":[{"genus":{"string":"Pseudocercospora"},"species":{"string":"dendrobii","authorship":"U. Braun et Crous","basionymAuthorTeam":{"authorTeam":"U. Braun et Crous","author":["U. Braun","Crous"]}}}],"positions":{"0":["genus",16],"17":["species",26],"27":["author_word",29],"30":["author_word",35],"39":["author_word",44]}}}
|
57
57
|
Pseudocercospora dendrobii U. Braun and Crous|{"scientificName":{"parsed":true, "parser_version":"test_version", "parser_run":1,"verbatim":"Pseudocercospora dendrobii U. Braun and Crous","normalized":"Pseudocercospora dendrobii U. Braun et Crous","canonical":"Pseudocercospora dendrobii","hybrid":false,"details":[{"genus":{"string":"Pseudocercospora"},"species":{"string":"dendrobii","authorship":"U. Braun and Crous","basionymAuthorTeam":{"authorTeam":"U. Braun and Crous","author":["U. Braun","Crous"]}}}],"positions":{"0":["genus",16],"17":["species",26],"27":["author_word",29],"30":["author_word",35],"40":["author_word",45]}}}
|
58
|
-
Schottera nicaeënsis (J.V. Lamouroux ex Duby) Guiry & Hollenberg|{"scientificName":{"parsed":true, "verbatim":"Schottera nicaeënsis (J.V. Lamouroux ex Duby) Guiry & Hollenberg", "normalized":"Schottera
|
58
|
+
Schottera nicaeënsis (J.V. Lamouroux ex Duby) Guiry & Hollenberg|{"scientificName":{"parsed":true, "parser_version":"test_version", "verbatim":"Schottera nicaeënsis (J.V. Lamouroux ex Duby) Guiry & Hollenberg", "normalized":"Schottera nicaeensis (J.V. Lamouroux ex Duby) Guiry et Hollenberg", "canonical":"Schottera nicaeensis", "hybrid":false, "details":[{"genus":{"string":"Schottera"}, "species":{"string":"nicaeensis", "authorship":"(J.V. Lamouroux ex Duby) Guiry & Hollenberg", "combinationAuthorTeam":{"authorTeam":"Guiry & Hollenberg", "author":["Guiry", "Hollenberg"]}, "basionymAuthorTeam":{"authorTeam":"J.V. Lamouroux", "author":["J.V. Lamouroux"], "exAuthorTeam":{"authorTeam":"Duby", "author":["Duby"]}}}}], "parser_run":1, "positions":{"0":["genus", 9], "10":["species", 20], "22":["author_word", 26], "27":["author_word", 36], "40":["author_word", 44], "46":["author_word", 51], "54":["author_word", 64]}}}
|
59
59
|
|
60
60
|
#binomial with several authors and a year
|
61
61
|
Pseudocercospora dendrobii U. Braun & Crous 2003|{"scientificName":{"parsed":true, "parser_version":"test_version", "parser_run":1,"verbatim":"Pseudocercospora dendrobii U. Braun & Crous 2003","normalized":"Pseudocercospora dendrobii U. Braun et Crous 2003","canonical":"Pseudocercospora dendrobii","hybrid":false,"details":[{"genus":{"string":"Pseudocercospora"},"species":{"string":"dendrobii","authorship":"U. Braun & Crous 2003","basionymAuthorTeam":{"authorTeam":"U. Braun & Crous","author":["U. Braun","Crous"],"year":"2003"}}}],"positions":{"0":["genus",16],"17":["species",26],"27":["author_word",29],"30":["author_word",35],"38":["author_word",43],"44":["year",48]}}}
|
@@ -72,7 +72,7 @@ Ferganoconcha? oblonga|{"scientificName":{"parsed":true, "parser_version":"test_
|
|
72
72
|
Rühlella|{"scientificName":{"parsed":true, "parser_version":"test_version", "parser_run":2,"verbatim":"R\u00fchlella","normalized":"Ruhlella","canonical":"Ruhlella","hybrid":false,"details":[{"uninomial":{"string":"Ruhlella"}}],"positions":{"0":["uninomial",8]}}}
|
73
73
|
Sténométope laevissimus Bibron 1855|{"scientificName":{"parsed":true, "parser_version":"test_version", "parser_run":2,"verbatim":"St\u00e9nom\u00e9tope laevissimus Bibron 1855","normalized":"Stenometope laevissimus Bibron 1855","canonical":"Stenometope laevissimus","hybrid":false,"details":[{"genus":{"string":"Stenometope"},"species":{"string":"laevissimus","authorship":"Bibron 1855","basionymAuthorTeam":{"authorTeam":"Bibron","author":["Bibron"],"year":"1855"}}}],"positions":{"0":["genus",11],"12":["species",23],"24":["author_word",30],"31":["year",35]}}}
|
74
74
|
Choriozopella trägårdhi Lawrence, 1947|{"scientificName":{"parsed":true, "verbatim":"Choriozopella trägårdhi Lawrence, 1947", "normalized":"Choriozopella tragardhi Lawrence 1947", "canonical":"Choriozopella tragardhi", "hybrid":false, "details":[{"genus":{"string":"Choriozopella"}, "species":{"string":"tragardhi", "authorship":"Lawrence, 1947", "basionymAuthorTeam":{"authorTeam":"Lawrence", "author":["Lawrence"], "year":"1947"}}}], "parser_version":"test_version", "parser_run":2, "positions":{"0":["genus", 13], "14":["species", 23], "24":["author_word", 32], "34":["year", 38]}}}
|
75
|
-
Isoëtes asplundii H. P. Fuchs|{"scientificName":{"parsed":true, "verbatim":"Isoëtes asplundii H. P. Fuchs", "normalized":"
|
75
|
+
Isoëtes asplundii H. P. Fuchs|{"scientificName":{"parsed":true, "parser_version":"test_version", "verbatim":"Isoëtes asplundii H. P. Fuchs", "normalized":"Isoetes asplundii H. P. Fuchs", "canonical":"Isoetes asplundii", "hybrid":false, "details":[{"genus":{"string":"Isoetes"}, "species":{"string":"asplundii", "authorship":"H. P. Fuchs", "basionymAuthorTeam":{"authorTeam":"H. P. Fuchs", "author":["H. P. Fuchs"]}}}], "parser_run":1, "positions":{"0":["genus", 7], "8":["species", 17], "18":["author_word", 20], "21":["author_word", 23], "24":["author_word", 29]}}}
|
76
76
|
Cerambyx thomæ GMELIN J. F., 1790|{"scientificName":{"parsed":true, "verbatim":"Cerambyx thomæ GMELIN J. F., 1790", "normalized":"Cerambyx thomae GMELIN J. F. 1790", "canonical":"Cerambyx thomae", "hybrid":false, "details":[{"genus":{"string":"Cerambyx"}, "species":{"string":"thomae", "authorship":"GMELIN J. F., 1790", "basionymAuthorTeam":{"authorTeam":"GMELIN J. F.", "author":["GMELIN J. F."], "year":"1790"}}}], "parser_version":"test_version", "parser_run":1, "positions":{"0":["genus", 8], "9":["species", 14], "15":["author_word", 21], "22":["author_word", 24], "25":["author_word", 27], "29":["year", 33]}}}
|
77
77
|
#digraph unicode characters
|
78
78
|
Læptura laetifica Dow, 1913|{"scientificName":{"parsed":true, "parser_version":"test_version", "parser_run":1,"verbatim":"L\u00e6ptura laetifica Dow, 1913","normalized":"Laeptura laetifica Dow 1913","canonical":"Laeptura laetifica","hybrid":false,"details":[{"genus":{"string":"Laeptura"},"species":{"string":"laetifica","authorship":"Dow, 1913","basionymAuthorTeam":{"authorTeam":"Dow","author":["Dow"],"year":"1913"}}}],"positions":{"0":["genus",7],"8":["species",17],"18":["author_word",21],"23":["year",27]}}}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: biodiversity19
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-07-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: treetop
|