is-text-sensitive

Detect if Text is Sensitive (contains explicit words).

Usage no npm install needed!

<script type="module">
  import isTextSensitive from 'https://cdn.skypack.dev/is-text-sensitive';
</script>

README

Detect if Text is Sensitive (containing words that are explicit, adult, offensive or mature in certain situations) and returns a boolean value (true or false).

Installation

npm install is-text-sensitive --save

Usage

import { isTextSensitive } from 'is-text-sensitive';

// returns true or false
isTextSensitive('Sorry to include this here; what the fuck!'); // true ✅
isTextSensitive('Text containing sensitive/explicit content.'); // false ❌