-
Notifications
You must be signed in to change notification settings - Fork 660
Open
Labels
Description
There is no method to convert adjectives to their original form.
There are toComparative and toSuperlative methods, but toOriginal (toRoot) is not exposed:
compromise/src/3-three/adjectives/plugin.js
Lines 3 to 13 in 2831ad3
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 | |
} |