Skip to content

Instantly share code, notes, and snippets.

@chuckreynolds
Last active April 20, 2019 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuckreynolds/65de216ad86138abf4fb7ae3d4c6316a to your computer and use it in GitHub Desktop.
Save chuckreynolds/65de216ad86138abf4fb7ae3d4c6316a to your computer and use it in GitHub Desktop.
sample oxford dict api vs response to learn to loop through
{
"id": "average",
"metadata": {
"operation": "retrieve",
"provider": "Oxford University Press",
"schema": "RetrieveEntry"
},
"results": [
{
"id": "average",
"language": "en-us",
"lexicalEntries": [
{
"entries": [
{
"senses": [
{
"definitions": [
"a number expressing the central or typical value in a set of data, in particular the mode, median, or (most commonly) the mean, which is calculated by dividing the sum of the values in the set by their number"
],
"id": "m_en_gbus0060780.007",
"subsenses": [
{
"definitions": [
"an amount, standard, level, or rate regarded as usual or ordinary"
],
"id": "m_en_gbus0060780.010"
}
]
},
{
"definitions": [
"the apportionment of financial liability resulting from loss of or damage to a ship or its cargo."
],
"id": "m_en_gbus0060780.012",
"subsenses": [
{
"definitions": [
"reduction in the amount payable under an insurance policy, e.g. in respect of partial loss."
],
"id": "m_en_gbus0060780.014"
}
]
}
]
}
],
"language": "en-us",
"lexicalCategory": {
"id": "noun",
"text": "Noun"
},
"text": "average"
},
{
"entries": [
{
"senses": [
{
"definitions": [
"constituting the result obtained by adding together several quantities and then dividing this total by the number of quantities"
],
"id": "m_en_gbus0060780.016",
"subsenses": [
{
"definitions": [
"of the usual or ordinary standard, level, or quantity"
],
"id": "m_en_gbus0060780.018"
},
{
"definitions": [
"having qualities that are seen as typical of a particular person or thing"
],
"id": "m_en_gbus0060780.019"
},
{
"definitions": [
"mediocre; not very good"
],
"id": "m_en_gbus0060780.020"
}
]
}
]
}
],
"language": "en-us",
"lexicalCategory": {
"id": "adjective",
"text": "Adjective"
},
"text": "average"
},
{
"entries": [
{
"senses": [
{
"definitions": [
"achieve or amount to as an average rate or amount over a period of time"
],
"id": "m_en_gbus0060780.022",
"subsenses": [
{
"definitions": [
"calculate or estimate the average of (figures or measurements)"
],
"id": "m_en_gbus0060780.028"
},
{
"definitions": [
"result in an even distribution; even out"
],
"id": "m_en_gbus0060780.029"
},
{
"definitions": [
"result in an average figure of"
],
"id": "m_en_gbus0060780.030"
}
]
}
]
}
],
"language": "en-us",
"lexicalCategory": {
"id": "verb",
"text": "Verb"
},
"text": "average"
}
],
"type": "headword",
"word": "average"
}
],
"word": "average"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment