constunswearify=require('unswearify');unswearify.loadProfanities('tr_TR');// Loading profanity dataunswearify.loadProfanitiesFromFile('/path/to/profanity/array.json');// Loading profanity dataunswearify.addProfanity("badword")// Add badword to the list//////////////////unswearify.isProfanity('badword',0.9);// Check if word is listed as badword and set custom threshold (optional default is 0.7)// trueunswearify.getScore('badword');// Returns calculated similarity of the word// between 0 to 1unswearify.findProfanities('This is a badword!');// Returns array of profanities in a sentence// [ { word: 'f*ck', score: 0.7416666666666667 } ]