Transform

Transforms words to their various other forms, which is useful for normalizing text or for natural language generation.

Noun Singularization and Pluralization

Transforms a noun to its various forms.

Request

ParameterTypeValues
word
(required)
StringThe word value may be:
  • a string value like leaf or mice
action
(required)
StringThe action value may be:
  • NounSinglar will transform the word to its singular form
  • NounPlural will transform the word to its plural form
prettyBooleanPretty print the response. Useful for debugging. The pretty value may be:
  • true
  • false(default)

Response

Returns the transformed noun.

Example

    Request
    Response
https://api.plasticity.ai/sapien/transformGETPOST
{
}

Verb Conjugations

Transforms a verb to its various forms.

Request

ParameterTypeValues
word
(required)
StringThe word value may be:
  • a string value like eating or are
action
(required)
StringThe action value may be:
  • VerbInfinitive will transform the word to its infinitive form
  • VerbPresentSingular will transform the word to its present singular form
  • VerbPresentPlural will transform the word to its present plural form
  • VerbPast will transform the word to its past form
  • VerbPastParticiple will transform the word to its past participle form
  • VerbContinuous will transform the word to its continuous form
  • VerbAgent will transform the word to its agent form
prettyBooleanPretty print the response. Useful for debugging. The pretty value may be:
  • true
  • false(default)

Response

Returns the transformed verb.

Examples

    Request
    Response
https://api.plasticity.ai/sapien/transformGETPOST
{
}
    Request
    Response
https://api.plasticity.ai/sapien/transformGETPOST
{
}

Adjective Transformations

Transforms an adjective to its various forms.

Request

ParameterTypeValues
word
(required)
StringThe word value may be:
  • a string value like worst or tallest
action
(required)
StringThe action value may be:
  • AdjectivePositiveDegree will transform the word to its positive degree form
  • AdjectiveComparative will transform the word to its comparative form
  • AdjectiveSuperlative will transform the word to its superlative form
  • AdjectiveAdverb will transform the word to its adverb form
prettyBooleanPretty print the response. Useful for debugging. The pretty value may be:
  • true
  • false(default)

Response

Returns the transformed adjective.

Example

    Request
    Response
https://api.plasticity.ai/sapien/transformGETPOST
{
}

Adverb Transformations

Transforms an adverb to its various forms.

Request

ParameterTypeValues
word
(required)
StringThe word value may be:
  • a string value like quickly
action
(required)
StringThe action value may be:
  • AdverbAdjective will transform the word to its adjective form
prettyBooleanPretty print the response. Useful for debugging. The pretty value may be:
  • true
  • false(default)

Response

Returns the transformed adverb.

Example

    Request
    Response
https://api.plasticity.ai/sapien/transformGETPOST
{
}