Skip to content

TextModeration 1.0.0

Latest

Choose a tag to compare

@NikolaiBorisov NikolaiBorisov released this 20 Aug 03:32
· 1 commit to main since this release

Stable public release of TextModeration, a native Swift Package for rule-based, on-device moderation of user-generated text.

Highlights

  • Runs entirely on-device.
  • No external APIs, servers, AI services, or third-party dependencies.
  • Provides clear moderation decisions:
    • .allowed
    • .flagged
    • .blocked
  • Includes a configurable default moderator.
  • Includes 11 moderation rules:
    • TextLengthRule
    • ExcessiveCapsRule
    • RepeatedCharactersRule
    • SpecialCharactersRule
    • LinkRule
    • MentionRule
    • SpamRule
    • PersonalDataRule
    • RepetitionRule
    • EmojiRule
    • ProfanityRule
  • Includes README documentation, MIT license, changelog, screenshots, and Swift test CI.

Notes

ProfanityRule does not include a built-in profanity dataset. Developers provide their own prohibited terms according to their app, audience, languages, and community standards.

TextModeration is rule-based. It can detect configured patterns, but it cannot guarantee detection of every harmful, abusive, contextual, or intentionally disguised message.