gretzky / comparative-superlative

returns the comparative or superlative of an adjective

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

comparative-superlative

get the comparative or superlative of a word

installation

npm install comparative-superlative
// or
yarn add comparative-superlative

usage

const cs = require('comparative-superlative')

// cs returns an object containing both
// the comparative and superlative

cs("important");
// {
//    comparative: "more important"
//    superlative: "most important"  
// }

cs("happy")
// {
//    comparative: "happier"
//    superlative: "happiest"  
// }

đź’€ init'd with skeletor

About

returns the comparative or superlative of an adjective

License:MIT License


Languages

Language:JavaScript 100.0%