Differences in JSON string of derivatives - V2 vs V1

shahoodshahood Member

Hi @AmosDuveen

There are many differences in JSON schema in V2 as compared to V1. I'm currently trying to figure out which one make sense to me and which ones don't. The ones that don't make sense would be reported here.

For now, I'm pasting below the JSON string of 'flushness' (a derivative of 'flush') both from v1 and v2:

JSON V1

{
  "metadata": {
    "provider": "Oxford University Press"
  },
  "results": [
    {
      "id": "flushness",
      "language": "en",
      "lexicalEntries": [
        {
          "derivativeOf": [
            {
              "id": "flush",
              "text": "flush"
            }
          ],
          "entries": [
            {
              "grammaticalFeatures": [
                {
                  "text": "Singular",
                  "type": "Number"
                }
              ],
              "homographNumber": "000"
            }
          ],
          "language": "en",
          "lexicalCategory": "Noun",
          "text": "flushness"
        }
      ],
      "type": "headword",
      "word": "flushness"
    }
  ]
}

JSON V2

{
  "id": "flushness",
  "metadata": {
    "operation": "retrieve",
    "provider": "Oxford University Press",
    "schema": "RetrieveEntry"
  },
  "results": [
    {
      "id": "flushness",
      "language": "en-gb",
      "lexicalEntries": [
        {
          "derivativeOf": [
            {
              "id": "flush",
              "text": "flush"
            }
          ],
          "entries": [
            {
              "senses": [
                {
                  "id": "m_en_gbus0374920.032"
                }
              ]
            }
          ],
          "language": "en-gb",
          "lexicalCategory": {
            "id": "noun",
            "text": "Noun"
          },
          "text": "flushness"
        }
      ],
      "type": "headword",
      "word": "flushness"
    }
  ],
  "word": "flushness"
}

While removal of homographNumber makes sense, I can't figure out why grammaticalFeatures are removed and why a sense with only senseId has been included.

Would be grateful if u could take some time for looking into it and providing a reason.

Thanks

Comments

  • AmosDuveenAmosDuveen Member, Administrator, Moderator admin

    Hi @shahood,

    Thanks for feeding back all of these issues, I have passed them onto our developers to investigate.

Sign In or Register to comment.