Skip to content

Missing convert adjectives to their original form #1186

@snowyu

Description

@snowyu

There is no method to convert adjectives to their original form.

There are toComparative and toSuperlative methods, but toOriginal (toRoot) is not exposed:

const toRoot = function (adj) {
const { fromComparative, fromSuperlative } = adj.methods.two.transform.adjective
let str = adj.text('normal')
if (adj.has('#Comparative')) {
return fromComparative(str, adj.model)
}
if (adj.has('#Superlative')) {
return fromSuperlative(str, adj.model)
}
return str
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions