JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://unpkg.com/compromise@latest/builds/compromise.min.js"></script>
JavaScript
// library loaded as window.nlp
var doc = nlp('aquarium')
//inflect the nouns..
doc.nouns().toPlural()
//output as text..
var str = doc.out('text')
alert(str)