<commit_before>taxpub
======

Ruby 2.4.1 gem to parse TaxPub documents like those produced by Pensoft Publishers, https://pensoft.net/.

TaxPub Background: https://www.ncbi.nlm.nih.gov/books/NBK47081/

[![Gem Version][1]][2]
[![Gem Downloads][10]][11]
[![Continuous Integration Status][3]][4]
[![Dependency Status][8]][9]

Usage
-----

```ruby
require "taxpub"
tp = TaxPub.new
tp.url = "https://zookeys.pensoft.net/article/12590/download/xml/"
tp.parse
tp.title
=> "A review of the genus Lordiphosa Basden in India, with descriptions of four new species..."
tp.doi
=> "https://doi.org/10.3897/zookeys.688.12590"
tp.references
=> [{:title=>"Developmental constraints and convergent evolution in Drosophila sex comb formation...
tp.authors
=> [{:given=>"<NAME>.", :surname=>"Fartyal", :fullname=>"<NAME>,...
tp.ranked_taxa
=> [{:genus=>"Lordiphosa"}, {:order=>"Diptera"}, {:family=>"Drosophilidae"},...
```

License
-------

taxpub is released under the [MIT license][5].

Support
-------

Bug reports can be filed at [https://github.com/dshorthouse/taxpub/issues][6].

Copyright
---------

Authors: [<NAME>][7]

Copyright (c) 2017 Canadian Museum of Nature

[1]: https://badge.fury.io/rb/taxpub.svg
[2]: http://badge.fury.io/rb/taxpub
[3]: https://secure.travis-ci.org/dshorthouse/taxpub.svg
[4]: http://travis-ci.org/dshorthouse/taxpub
[5]: http://www.opensource.org/licenses/MIT<commit_msg>Update readme to reflect current method for scientific names<commit_after>taxpub
======

Ruby 2.4.1 gem to parse TaxPub documents like those produced by Pensoft Publishers, https://pensoft.net/.

TaxPub Background: https://www.ncbi.nlm.nih.gov/books/NBK47081/

[![Gem Version][1]][2]
[![Gem Downloads][10]][11]
[![Continuous Integration Status][3]][4]
[![Dependency Status][8]][9]

Usage
-----

```ruby
require "taxpub"
tp = TaxPub.new
tp.url = "https://zookeys.pensoft.net/article/12590/download/xml/"
tp.parse
tp.title
=> "A review of the genus Lordiphosa Basden in India, with descriptions of four new species..."
tp.doi
=> "https://doi.org/10.3897/zookeys.688.12590"
tp.references
=> [{:title=>"Developmental constraints and convergent evolution in Drosophila sex comb formation...
tp.authors
=> [{:given=>"<NAME>.", :surname=>"Fartyal", :fullname=>"<NAME>,...
tp.scientific_names({ with_ranks: true })
=> [{:genus=>"Lordiphosa"}, {:order=>"Diptera"}, {:family=>"Drosophilidae"},...
```

License
-------

taxpub is released under the [MIT license][5].

Support
-------

Bug reports can be filed at [https://github.com/dshorthouse/taxpub/issues][6].

Copyright
---------

Authors: [<NAME>][7]

Copyright (c) 2017 Canadian Museum of Nature

[1]: https://badge.fury.io/rb/taxpub.svg
[2]: http://badge.fury.io/rb/taxpub
[3]: https://secure.travis-ci.org/dshorthouse/taxpub.svg
[4]: http://travis-ci.org/dshorthouse/taxpub
[5]: http://www.opensource.org/licenses/MIT
{'fraction_non_alphanumeric': 0.20693277310924368, 'fraction_numerical': 0.03431372549019608, 'mean_word_length': 4.431558935361217, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 33, 'https://': 14, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3327502', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1017, 'n_words': 227}