---
title: "Retrieve the frequency of a word derived from a corpus."
method: GET
path: "/stats/frequency/word/{source_lang}/"
tags: ["LexiStats"]
---

# Retrieve the frequency of a word derived from a corpus.

`GET /stats/frequency/word/{source_lang}/`

This endpoint provides the frequency of a given word. When multiple database records match the query parameters, the returned frequency is the sum of the individual frequencies. For example, if the query parameters are lemma=test, the returned frequency will include the verb "test", the noun "test" and the adjective "test" in all forms (Test, tested, testing, etc.) <br> <br> If you are interested in the frequency of the word "test" but want to exclude other forms (e.g., tested) use the option trueCase=test. Normally, the word "test" will be spelt with a capital letter at the beginning of a sentence. The option trueCase will ignore this and it will count "Test" and "test" as the same token. If you are interested in frequencies of "Test" and "test", use the option wordform=test or wordform=Test. Note that trueCase is not just a lower case of the word as some words are genuinely spelt with a capital letter such as the word "press" in Oxford University Press. <br> <br> Parameters can be provided in PATH, GET or POST (form or json). The parameters in PATH are overriden by parameters in GET, POST and json (in that order). In PATH, individual options are separated by semicolon and values are separated by commas (where multiple values can be used). Examples:
* PATH: /lemma=test;lexicalCategory=noun
* GET: /?lemma=test&lexicalCategory=noun
* POST (json):

  ```javascript
    {
      "lemma": "test",
      "lexicalCategory": "noun"
    }
  ```

<br> One of the options wordform/trueCase/lemma/lexicalCategory has to be provided.

## Path parameters

- `source_lang` string, required

## Query parameters

- `corpus` string
- `wordform` string
- `trueCase` string
- `lemma` string
- `lexicalCategory` string

## Headers

- `app_id` string, required
- `app_key` string, required

## Response `200`

Successful response.

- StatsWordResult — Schema for lexi-stats results for a word/trueCase/lemma/lexicalCategory returned as a frequency
  - `metadata` object — Additional Information provided by OUP
  - `result` object — Frequency information for a given entity
    - `frequency` integer, required — The number of times a word appears in the entire corpus
    - `lemma` string — A lemma of the word (e.g., wordforms "lay", "laid" and "laying" have all lemma "lay")
    - `lexicalCategory` string — A lexical category such as 'verb' or 'noun'
    - `matchCount` integer, required — The number of database records that matched the query params (stated frequency is the sum of the individual frequencies)
    - `normalizedFrequency` integer, required — The number of times a word appears on average in 1 million words
    - `trueCase` string — A given written realisation of a an entry (e.g., "lay") usually lower case
    - `wordform` string — A given written realisation of a an entry (e.g., "Lay") preserving case

## Other responses

- `400` — You need to specify at least one option. Try one of 'wordform, lemma, trueCase, lexicalCategory'.
- `404` — language is not in...
- `500` — Internal Error. An error occurred while processing the data.

---

[API](https://skmtc.net/oxforddictionaries/apis/untitled-api.md) · [All operations](https://skmtc.net/oxforddictionaries/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/oxforddictionaries/untitled-api/versions/6acbf89f6aeb/schema)
