Skip to content

List items being picked up as independent paragraphs #41

Description

@keynmol

Example: https://simple.wikipedia.org/wiki/Human_evolution ("Species list" section)

In XML dump this looks like this:

== Species list ==
This list is in chronological order by [[genus]].

* ''[[Sahelanthropus]]''
** ''[[Sahelanthropus tchadensis]]''
* ''[[Orrorin]]''
** ''[[Orrorin tugenensis]]''
* ''[[Ardipithecus]]''
** ''[[Ardipithecus kadabba]]''
** ''[[Ardipithecus ramidus]]''
* ''[[Australopithecus]]''
** ''[[Australopithecus anamensis]]''
** ''[[Australopithecus afarensis]]''
** ''[[Australopithecus bahrelghazali]]''
** ''[[Australopithecus africanus]]''
** ''[[Australopithecus garhi]]''
...

Jsonpedia contains a very weird split with annotations being jammed together with wrong offsets:

{
      "paragraph": "Australopithecus anamensis Australopithecus afarensis Australopithecus bahrelghazali Australopithecus africanus Australopithecus garhi",
      "links": [
        {
          "id": "Australopithecus_anamensis",
          "anchor": "Australopithecus anamensis",
          "start": 0,
          "end": 26
        },
        {
          "id": "Australopithecus_afarensis",
          "anchor": "Australopithecus afarensis",
          "start": 0,
          "end": 26
        },
        {
          "id": "Australopithecus_bahrelghazali",
          "anchor": "Australopithecus bahrelghazali",
          "start": 0,
          "end": 30
        },
        {
          "id": "Australopithecus_africanus",
          "anchor": "Australopithecus africanus",
          "start": 0,
          "end": 26
        },
        {
          "id": "Australopithecus_garhi",
          "anchor": "Australopithecus garhi",
          "start": 0,
          "end": 22
        }
      ]
    }

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions