Negate sentence
npm install negate-sentence> Negate Sentence
- Background
- Install
- Usage
- Maintainers
- Contributing
- License
It takes a sentence, e.g. is positive and returns the negation is not positive. It's based on simple string manipulation, nothing fancy, it wasn't tested on more complex sentences. It was created to remove some repetition in a template engine.
``bash`
npm install negate-sentence
`js``
const negate = require('negate-sentence')
const sentence = negate('is negative')
console.log(sentence) // 'is not negative'
Please feel free to send PRs that improve the lib.
MIT