anystyle-parser 0.7.4 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4222ccac4831760c44f3d108c4b319ebabd6501e
4
- data.tar.gz: 7a3889d96f8378534e9ffb223ee879d9665c20e9
3
+ metadata.gz: 6e6aa6b924465794c8baf1f0baf64138f9111ece
4
+ data.tar.gz: c1bc937d911df45370f14e1f6b59d3860b90ce5e
5
5
  SHA512:
6
- metadata.gz: 63d8532ab4eff26342025bb0f5884a9c4631922174db5a97ccf638b870671f9ad059abb2b3276eddf226ba400abfa600d45a8f48907869b95524f62a7f790123
7
- data.tar.gz: cd9130263e49414bbdfd1d0561c69ff5fbbff321610c251dffeec454030ccf28a9bbd47e5c4a924a0c23eaa87142cf0fa0564b4860078edc4e69ad25a01350a2
6
+ metadata.gz: ae61598152f4d0f76ae9aa34a62095ccb1efc68b2cd86b79b0334a0d798e8838705debf7862660ab0241562d7505ca3c4df360d84da8ca792e3cd09baa065104
7
+ data.tar.gz: fbde442153b01070c2d5121571b84e3c6e007e6ef397160f81b562f4cba7f0b3f443aeea48688550b93c2c49c86f587044489fceecbf320faabd4c56a35b4a52
data/README.md CHANGED
@@ -16,7 +16,7 @@ CSL/CiteProc JSON format).
16
16
 
17
17
  Web Application and Web Service
18
18
  -------------------------------
19
- Anystyle-Parser is avaialble as a web application and a web service at
19
+ Anystyle-Parser is available as a web application and a web service at
20
20
  [http://anystyle.io](http://anystyle.io). For example Ruby code using
21
21
  the anystyle.io API, see this [prototype](https://gist.github.com/inukshuk/f1d47aeab1f778bca8ce)
22
22
  for a style predictor.
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.homepage = 'http://anystyle.io'
14
14
  s.summary = 'Smart and fast academic bibliography parser.'
15
15
  s.description = 'A sophisticated parser for academic reference lists and bibliographies based on machine learning algorithms using conditional random fields.'
16
- s.license = 'FreeBSD'
16
+ s.license = 'BSD-2-Clause-FreeBSD'
17
17
 
18
18
  s.required_ruby_version = '>= 1.9.3'
19
19
 
@@ -180,6 +180,10 @@ module Anystyle
180
180
  names.gsub!(/\s*(\.\.\.|…)\s*/, '')
181
181
  names.gsub!(/;|:/, ',')
182
182
 
183
+ # Add surname/initial punctuation separator for Vancouver-style names
184
+ # E.g. Rang HP, Dale MM, Ritter JM, Moore PK
185
+ names.gsub!(/\b(\p{Lu}[^\s,.]+)\s+([\p{Lu}][\p{Lu}\-]{0,3})(,|$)/, '\1, \2\3')
186
+
183
187
  Namae.parse!(names).map { |name|
184
188
  name.normalize_initials
185
189
  name.sort_order
@@ -1,5 +1,5 @@
1
1
  module Anystyle
2
2
  module Parser
3
- VERSION = '0.7.4'.freeze
3
+ VERSION = '0.8.0'.freeze
4
4
  end
5
5
  end
@@ -52,6 +52,7 @@ module Anystyle
52
52
  ['Doe, J', 'Doe, J.'],
53
53
  ['JE Doe', 'Doe, J.E.'],
54
54
  ['Doe, JE', 'Doe, J.E.'],
55
+ ['Dendle MT, Sacchettini JC, Kelly JW', 'Dendle, M.T. and Sacchettini, J.C. and Kelly, J.W.'],
55
56
  ['Edgar A. Poe, Herman Melville', 'Poe, Edgar A. and Melville, Herman'],
56
57
  ['Edgar A. Poe; Herman Melville', 'Poe, Edgar A. and Melville, Herman'],
57
58
  ['Poe, Edgar A., Melville, Herman', 'Poe, Edgar A. and Melville, Herman'],
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: anystyle-parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-26 00:00:00.000000000 Z
11
+ date: 2016-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bibtex-ruby
@@ -112,7 +112,7 @@ files:
112
112
  - spec/spec_helper.rb
113
113
  homepage: http://anystyle.io
114
114
  licenses:
115
- - FreeBSD
115
+ - BSD-2-Clause-FreeBSD
116
116
  metadata: {}
117
117
  post_install_message:
118
118
  rdoc_options:
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.4.7
139
+ rubygems_version: 2.5.1
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: Smart and fast academic bibliography parser.