GET api/Flex?word={word}&lang={lang}

Perform inflection on the word

Request Information

URI Parameters

NameDescriptionTypeAdditional information
word

the word to be derivated, in root form (not inflectioned)

string

Required

lang

ISO-2 language code, lowercase

string

Required

Body Parameters

List of "feature names" to be added as semantic or morphologic features to the word. ie: Plural, Diminutive, F, M, (F for femenine, M for Masculine)

Collection of string

Request Formats

application/json, text/json

Sample:
[
  "sample string 1",
  "sample string 2"
]

application/xml, text/xml

Sample:
<ArrayOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
  <string>sample string 1</string>
  <string>sample string 2</string>
</ArrayOfstring>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

the list of possible Inflections, the firts is the most frequent, followed by other possibilities, in descending frequency order (if any)

Collection of ETag
NameDescriptionTypeAdditional information
Token

The original 'Token' got by the word-splitting schema

string

None.

Word

The assumed word form in the sentence, might be spell/pohonetic corrected

string

None.

Root

Word derivational root (if available) Typically equals Lemma, but in derivational morphology and depending on language, this might difer. Some adverbs are derived from adjectives, Like this example in Spanish: rápido is the derivational Root of the adverb: rápidamente

string

None.

Lemma

The actual lemma (unflexioned word), for verbs it is infinitive, for nouns it's typically Singular and Male, provided that language supports gender, if not its Neutral or Unspecified: 0)

string

None.

Tag

Eagles v2.0 tag, representing a multilingual format tag specification.

string

None.

FreqCorpus

Corpus relative Frequency of the 'Word' form, if the corpus-freq is not available because it's a parasynthetic or unfrequent word, this frequency gets estimated by an internal algorithm.

decimal number

None.

Probability

Relative probability of this Tag/Word among all alternatives

decimal number

None.

LeftIndex

token starting index (0-based) inside the originally analyzed text-string

integer

None.

Length

'Token' Length (at the originally analyzed text-string)

integer

None.

WordCount

Word Count, normally this equals 1 but on locutions, formulas, and multi-word terminology this is always > 1

integer

None.

SpellCorrection

Performed spell-correct action(s) (if any)

string

None.

Meaning

Meaning of the word, used mostly by proper nouns and multiword terminology such like locutions, medical term, and expansion of acronyms and abbreviations as well as canonical name of units, chemical products / formula

string

None.

Properties

Collection of string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Token": "sample string 1",
    "Word": "sample string 2",
    "Root": "sample string 3",
    "Lemma": "sample string 4",
    "Tag": "sample string 5",
    "FreqCorpus": 6.1,
    "Probability": 7.1,
    "LeftIndex": 8,
    "Length": 9,
    "WordCount": 10,
    "SpellCorrection": "sample string 11",
    "Meaning": "sample string 12",
    "Properties": [
      "sample string 1",
      "sample string 2"
    ]
  },
  {
    "Token": "sample string 1",
    "Word": "sample string 2",
    "Root": "sample string 3",
    "Lemma": "sample string 4",
    "Tag": "sample string 5",
    "FreqCorpus": 6.1,
    "Probability": 7.1,
    "LeftIndex": 8,
    "Length": 9,
    "WordCount": 10,
    "SpellCorrection": "sample string 11",
    "Meaning": "sample string 12",
    "Properties": [
      "sample string 1",
      "sample string 2"
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfETag xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LexServerWebApi.Models">
  <ETag>
    <FreqCorpus>6.1</FreqCorpus>
    <LeftIndex>8</LeftIndex>
    <Lemma>sample string 4</Lemma>
    <Length>9</Length>
    <Meaning>sample string 12</Meaning>
    <Probability>7.1</Probability>
    <Properties xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Properties>
    <Root>sample string 3</Root>
    <SpellCorrection>sample string 11</SpellCorrection>
    <Tag>sample string 5</Tag>
    <Token>sample string 1</Token>
    <Word>sample string 2</Word>
    <WordCount>10</WordCount>
  </ETag>
  <ETag>
    <FreqCorpus>6.1</FreqCorpus>
    <LeftIndex>8</LeftIndex>
    <Lemma>sample string 4</Lemma>
    <Length>9</Length>
    <Meaning>sample string 12</Meaning>
    <Probability>7.1</Probability>
    <Properties xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>sample string 1</d3p1:string>
      <d3p1:string>sample string 2</d3p1:string>
    </Properties>
    <Root>sample string 3</Root>
    <SpellCorrection>sample string 11</SpellCorrection>
    <Tag>sample string 5</Tag>
    <Token>sample string 1</Token>
    <Word>sample string 2</Word>
    <WordCount>10</WordCount>
  </ETag>
</ArrayOfETag>