Giter VIP home page Giter VIP logo

gnparser's People

Contributors

alexander-myltsev avatar dimus avatar dshorthouse avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnparser's Issues

Change canonical_with_ranks to canonical_complete

Paddy suggested to have 2 version of canonical -- one which is identical to canonical we have, and another one that contains everything from 'normalized' version except authors. Canonical_complete practically speaking is the same as canonical_with ranks plus showing subgenus.

Parse as far as possible before garbage

Rana aurora Baird and Girard, 1852; H.B. Shaffer et al., 2004 is currently parsed as uninomial Rana

It has to parse up to Rana aurora Baird and Girard, 1852

Check test coverage from test_data.txt

Some entries from test_data.txt are commented out currently as we do not have working rules for them. This issue is finished when all such tests are passing -- they do not have to be complete and have all fields.

Deal with epithets starting with numbers

Latrodectus 13-guttatus Thorell, 1875 is not allowed anymore it has to be changed to a spelled out 13 in this case tridecimguttatus. I suspect that spelling of a number will change depending on the rest of epithet. And I am afraid it means our best shot is to build a dictioniary that will convert number version to spelled out version for all such epithets. (Probably 200-300 of these)

Populate quality collection for the quality field

Quality indicates if pased name is well formed, or is having problems. There are 4 levels of quality:

  • well-formed
  • small problems
  • severe problems
  • almost certainly not a name

The last fith level is parsed=false where no canonical form is generated and quality field is not existant in the output

Remove introduced ambiguity between `forma` and `filius`

We assign f. as normalized token for both filius and forma. In most cases it is fine, however if we had a name like Aus bus L. forma bus it is obvious that in the context we deal with rank forma. When we convert it to normalized version of Aus bus L. f. bus the semantic meaning of f. is becoming ambiguous and might mean both filius and forma. In current implementation if we parse normalized version again we are getting "conversion" of forma rank into son of postfix belonging to the author.

Canonical form shows rank

Caulerpa cupressoides forma nuda canonical should not have forma (line 245 in test). Same is true for name from the same test group.

Optional ouput with ranks for canonical

Some biologists, especially botanists, pay close attention to infraspecies ranks, and they want to have ranks to be shown in canonical form. Others don't care.

Improve Warnings collecting process

Currently we have a problem with Warnings collection because a mutable collection is shared between all rules and all pb2 parser phases, and has no rollback mechanism.

Showing authorship the way it was presented in the verbatim

Basionym authorship has two alternative spellings in case if there is no combination authorship -- basionym authors can be surrounded by parentheses or not. Currently we do not save in AST how name had been represented in the verbatim name, although we do have rules that separate this information. We need to add a field to Authorship that reflects the difference and when we show the name in normalized form to use the same parenthesis (exestance or absence) as in the original.

If verbatim was Homo sapiens Linneaus 1758

normalized should be Homo sapiens Linnaeus 1758

If verbatim was Homo sapiens (Linnaeus 1758)
normalized should be Homo sapiens (Linnaeus 1758)

Description should classify both cases as basionym authorship (may be with 'explicit/implicit' flag?)

Move AST nodes closer to Input

The problem with current code is that AST nodes could be applied to any string input.
There are ways to try to solve this:

  • Input dependency injection to AST nodes
  • factory class/methods generation/manual composition

Fix abbreviated hybrid formula

Currently Aus x bus normalizes to Aus x Aus bus which is not correct. We need to change rules to normalize to Aus x bus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.