MLAIEL is in test & preview — some profiles and content are demonstrations. Learn more

Multilingual Moderation

Agent

Checks a text in 20 languages with word lists and OpenAI moderation, and masks flagged words.

Agent = does one task.

Ready to UseVersion 1.0.0Published by @Mlaiel6 followers

Staff ran it and it worked. You still need your own provider accounts where listed.

You get an in-app notification when a new version is published. Nothing is installed or updated on your computer automatically.

What it does

Tells you whether a text looks appropriate, using two engines. Offline word lists catch strong insults and profanity in 20 languages (leetspeak and missing accents included) and mask them with * in a filtered copy. With your own OpenAI key it also runs OpenAI omni-moderation, which understands meaning: harassment, hate, violence, sexual content, self-harm and illicit content. It can check images too. It is a first pass, not a replacement for human moderators.

🧪 Try it on MLAIEL

Runs on MLAIEL's own OpenAI key for signed-in members with a verified email. Inputs and results are moderated, nothing you upload is stored, and you get 8 tries per day across all tools.

Sign in with a verified email to try this tool. Sign in

GitHub activity

mlaiel/iacherie

This repository is linked. Activity appears after the next daily check.

Public data from GitHub, checked once a day.

Who it's for

Developers of community apps, forums, chats and comment sections who want a multilingual first-pass filter.

What it can do

  • Word lists in 20 languages: en, fr, de, es, it, pt, nl, pl, ru, tr, ar, zh, ja, ko, hi, id, vi, th, sv, ro
  • Masks flagged words with * (handles leetspeak and missing accents)
  • Optional OpenAI omni-moderation for meaning-based categories (free endpoint, your key)
  • Image moderation with moderateImage()
  • Add your own words per language
  • Works fully offline when no key is set

What's inside this studio

  • Multilingual Moderation Agent
    • Language Detection & Translation AgentOpen listing

      picks the word list

    • Word lists (20 languages) Tool

      offline

    • OpenAI omni-moderation Provider

      optional, your key

What you need

  • Optional: your own OpenAI account

    Put your key in a setting named OPENAI_API_KEY on your own computer. Never share it. Where to get a key

MLAIEL does not run these tools for you and never asks for your provider keys. You run them on your own computer or server, with your own accounts.

How to use it

Install

  1. Install Node.js 22.18 or newer.
  2. Download the 1.0.0 package below and unzip it, then open the multilingual-moderation folder.
  3. Run: npm install && npm test (offline tests, no key needed).
  4. Optional: copy .env.example to .env and add your own OpenAI key for meaning-based checks.

Use

  1. Offline: node examples/cli.ts "text to check" --offline
  2. With OpenAI: node --env-file=.env examples/cli.ts "text to check"
  3. Read appropriate (true/false), filteredText and the OpenAI categories.
  4. Or click Try it on this page to test it on MLAIEL without a key.

⬇️ Download

Downloads come straight from the source repository. MLAIEL does not host files.

🔌 Integrate

Follow these steps in order. If you get stuck, ask in the improvement project.

Use as a library

import { moderateText } from "./multilingual-moderation/src/index.ts";

const result = await moderateText("Your text here");
console.log(result.appropriate, result.filteredText, result.openai?.categories);

Command line

node --env-file=.env examples/cli.ts "Your text here"

Works with

Node.js 22.18+ (runs TypeScript directly, no build step) · Windows, macOS, Linux (tested on Windows 11) · No runtime npm dependencies

License

License: MIT

MIT, declared by the owner: Fahed Mlaiel, who holds all rights to Mlaiel/iacherie, chose the MIT License for this clean TypeScript rewrite on 2026-10-01. The package ships the LICENSE file. This is not legal advice.

This is not legal advice. Check the license yourself before you use or share this tool.

Security check

  • No secrets found in the checked files.
  • No risky install commands found.
  • Checked on Oct 1, 2026

How it was tested

  • Run test · Passed

    Windows 11, Node.js 22.18, package 1.0.0 run from source with a real OpenAI key, 2026-10-01 · Oct 1, 2026

    Moderated clean and abusive samples in several languages; abusive terms were caught and masked, clean text passed.

    • npm test passes (package unit tests)
    • Local word lists flag German, French and English insults and mask them
    • OpenAI omni-moderation engine called with a real key and merged with the local verdict
    • Runs without a key (local engine only) and says so in the result
  • Run test · Passed

    Windows 11 · CPython 3.12.7 · fresh virtual environment with httpx only · all provider keys removed · Oct 1, 2026

    Imported in isolation and ran offline. Harmless text was marked appropriate; a word from the English list was flagged and masked with *.

    • Import with only httpx installed: passed
    • Harmless sentence → is_appropriate = true
    • Word from the English list → flagged, masked with *
    • Moderation languages available: 20 (README claims 644+, not verified)

Versions and changes

  • 0.1.0 → 1.0.0

    Oct 1, 2026 · source revision mlaiel packages/marketplace/multilingual-moderation@1.0.0

    1.0.0 is a clean TypeScript rewrite that runs on its own. New 20-language word lists, OpenAI omni-moderation for meaning and images, and 18 offline tests. Validated with the real OpenAI API.

    • Clean TypeScript rewrite of iacherie moderation_multilingual.py.
    • New word lists for 20 languages, leetspeak and accent folding, substring matching for zh/ja/th.
    • New OpenAI omni-moderation engine for meaning (text) and moderateImage() for images.
    • Matched words are never returned in clear, only masked.
  • 0.1.0 · first release

    Oct 1, 2026 · source revision 54911be

    First listing of the iacherie moderation module, pinned to the analyzed revision. No code changes compared to the source repository.

Updates are never applied silently. You decide if and when to download a new version.

Help improve it

Open the project “Multilingual Moderation — Continuous Improvement”

Source files: moderation_multilingual.py, language_support.py

← Back to the marketplace