POST Statistics

Returns statistics for the text posted.

Request Information

URI Parameters

None.

Body Parameters

Post data.

StatisticsPostData
NameDescriptionTypeAdditional information
Text

Text to get the statistics for.

string

Required

Request Formats

application/json, text/json

Sample:
{
  "text": "sample string 1"
}

application/xml, text/xml

Sample:
<StatisticsController.StatisticsPostData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContentFlight.Vt.Api.Controllers">
  <Text>sample string 1</Text>
</StatisticsController.StatisticsPostData>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A statistics object for the text.

StatisticsModel
NameDescriptionTypeAdditional information
AverageWordCountPerSentence

Average number of words per sentence.

decimal number

None.

AverageWordLength

Average word length

decimal number

None.

Lix

Läsbarhetsindex LIX.

decimal number

None.

LixLongWordCount

Number of words exceeding six characters for LIX calculation.

integer

None.

LixLongWordPercentage

Log word percentage for LIX calculation.

decimal number

None.

Ovix

Ordvariationsindex OVIX.

decimal number

None.

SentenceCount

Number of sentences in text.

integer

None.

UniqueWordCount

Number of unique words in the text.

integer

None.

WordCount

Number of words in the text.

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "averageWordCountPerSentence": 1.1,
  "averageWordLength": 2.1,
  "lix": 3.1,
  "lixLongWordCount": 4,
  "lixLongWordPercentage": 5.1,
  "ovix": 6.1,
  "sentenceCount": 7,
  "uniqueWordCount": 8,
  "wordCount": 9
}

application/xml, text/xml

Sample:
<StatisticsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContentFlight.Vt.Api.Models.Analyses" />