Parse names ending on hybrid sign #88

Closed
dimus opened this Issue Sep 14, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@dimus
Member

dimus commented Sep 14, 2015

Arthopyrenia hyalospora x

@alexander-myltsev

This comment has been minimized.

Show comment
Hide comment
@alexander-myltsev

alexander-myltsev Oct 3, 2016

Contributor

We already parse it. Is it OK to have JSON as follows:

scala> fromString("""Arthopyrenia hyalospora x""").render(false)
res0: String =
{
  "name_string_id" : "c056b89e-789b-5c28-89e7-e820ea0baebf",
  "parsed" : true,
  "quality" : 2,
  "quality_warnings" : [ [ 2, "Hybrid formula" ] ],
  "parser_version" : "0.3.3-SNAPSHOT",
  "verbatim" : "Arthopyrenia hyalospora x",
  "normalized" : "× Arthopyrenia hyalospora",
  "canonical_name" : {
    "value" : "× Arthopyrenia hyalospora"
  },
  "hybrid" : true,
  "surrogate" : false,
  "virus" : false,
  "details" : [ {
    "genus" : {
      "value" : "Arthopyrenia"
    },
    "specific_epithet" : {
      "value" : "hyalospora"
    }
  } ],
  "positions" : [ [ "genus", 0, 12 ], [ "specific_epithet", 13, 23 ], [ "hybrid_char", 24, 25 ] ]
}
Contributor

alexander-myltsev commented Oct 3, 2016

We already parse it. Is it OK to have JSON as follows:

scala> fromString("""Arthopyrenia hyalospora x""").render(false)
res0: String =
{
  "name_string_id" : "c056b89e-789b-5c28-89e7-e820ea0baebf",
  "parsed" : true,
  "quality" : 2,
  "quality_warnings" : [ [ 2, "Hybrid formula" ] ],
  "parser_version" : "0.3.3-SNAPSHOT",
  "verbatim" : "Arthopyrenia hyalospora x",
  "normalized" : "× Arthopyrenia hyalospora",
  "canonical_name" : {
    "value" : "× Arthopyrenia hyalospora"
  },
  "hybrid" : true,
  "surrogate" : false,
  "virus" : false,
  "details" : [ {
    "genus" : {
      "value" : "Arthopyrenia"
    },
    "specific_epithet" : {
      "value" : "hyalospora"
    }
  } ],
  "positions" : [ [ "genus", 0, 12 ], [ "specific_epithet", 13, 23 ], [ "hybrid_char", 24, 25 ] ]
}
@dimus

This comment has been minimized.

Show comment
Hide comment
@dimus

dimus Oct 3, 2016

Member

I will close this one

Member

dimus commented Oct 3, 2016

I will close this one

@dimus dimus closed this Oct 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment