Skip to content

Transform

Introduction

Lettria improves the detection and understanding of the meaning of words in a sentence, thanks to its algorithms of links between the different parts of speech.

The Transform subtype of the Token Object provides information about the definition and context of the word from an other part of speech by transforming the lemma of it, using algorithms and Lettria's extensive database of language data. This allows users to use a meaning that does not only come from the actual part of speech of the word.

It leads to a better analyze of the structure of the sentence with more informations, for example a noun which have the meaning of an action will have a transform meaning from the verb of this action. The extra key gives the information of whether the verb is transitive and what its subject, object and predicate would be. This is particularly useful to create more uniform comprehension graph.

Available Transformations

MeaningPosTagTransformation PosTagExemple
actionNVExplanation | To explain
feeling/emotionNVAdmiration | To admire
[qualities/defects]NJJInspiration | Inspiring
mannerRBJJAutomatically | Automatic
relationalJJNElectric | Electricity
action_jjJJVReadable | To read

Format

Transforms are received inside an Array()

A comprehensive list of categories can be found here.

Transform Format

KeyTypeDescription
lemmaStringLemma of the transformation.
tagStringTag of the transformation.
meaningMeaningList of all meanings
extraobjectadditional informations.

Example

{
    "lemma": "transform",
    "tag": "V",
    "meaning": [
        {
            "sub": "change_(sthg)",
            "super": "root|interact|make_change",
            "intensity": 1,
            "negation": false,
            "origin": ["lettria"]
        },
        {
            "sub": "get_changed",
            "super": "root|act|changing",
            "intensity": 1,
            "negation": false,
            "origin": ["lettria"]
        }
    ],
    "extra": {
        "transitif" : true,
        "subj": null,
        "obj": 3,
        "obl": null
    }
}

Next steps