kunuharupa
v1.2.0
Published
A profanity filter for Sinhala and Singlish.,support es sysntax
Readme

Kunuharupa - Sinhala Profanity Filter
A Node.js package to detect and filter profanity in both Sinhala Unicode and Singlish text.
Installation
npm install kunuharupaUsage
const { detectProfanity, filterProfanity } = require('kunuharupa');
else
import { detectProfanity, filterProfanity } from "kunuharupa"
// Detect profanity
const text = "Your text here with Sinhala/Singlish content";
const result = detectProfanity(text);
console.log(result.profanities); // Array of detected profane words
console.log(result.count); // Number of profanities found
// Filter profanity
const filteredText = filterProfanity(text);
console.log(filteredText); // Text with profanities replaced by asterisksFeatures
- Detects profanity in both Sinhala Unicode and Singlish text
- Returns count and list of detected profane words
- Filters profanity by replacing with asterisks
- Easy to integrate with any Node.js application
License
MIT
