Skip to content
English
  • There are no suggestions because the search field is empty.

Profanity Detection in Lara

A Guide to Profanity Filtering and Detection via the Lara API

Lara provides two ways to handle offensive or inappropriate language: profanity detection and filtering integrated in the translate endpoint, and a standalone profanity detection service available via API.

Profanity filtering in text translation

When translating text via API, you can control how Lara handles profanities using two optional parameters.

profanitiesHandling — activates profanity handling and defines the behaviour:

  • detect — flags offensive content in the response without altering the translation
  • hide — masks detected terms with symbols (default behaviour when the parameter is set without a value)
  • avoid — instructs the engine to produce a translation that avoids offensive language

profanitiesDetect — defines where detection is performed:

  • target — detection is applied to the translated output only (default)
  • source_target — detection is applied to both source and target text

Note: if profanitiesHandling is not set, profanity filtering is not active regardless of profanitiesDetect. Setting profanitiesHandling without specifying a value activates hide by default.

Profanity filtering is included in the standard translation pricing. For full parameter details and code examples, see the SDK documentation.

Supported languages

Profanity detection and filtering is available for the following languages:

  • Afrikaans – af-ZA
  • Albanian – sq-AL
  • Amharic – am-ET
  • Arabic – ar-SA
  • Armenian – hy-AM
  • Azerbaijani – az-AZ
  • Basque – eu-ES
  • Bengali – bn-BD
  • Bulgarian – bg-BG
  • Burmese – my-MM
  • Catalan – ca-ES
  • Chinese (Simplified) – zh-CN
  • Chinese (Traditional, Hong Kong) – zh-HK
  • Croatian – hr-HR
  • Czech – cs-CZ
  • Danish – da-DK
  • Dutch – nl-NL
  • English (Australia) – en-AU
  • English (Canada) – en-CA
  • English (Ireland) – en-IE
  • English (United Kingdom) – en-GB
  • English (United States) – en-US
  • Estonian – et-EE
  • Filipino – fil-PH
  • Finnish – fi-FI
  • French – fr-FR
  • Galician – gl-ES
  • Georgian – ka-GE
  • German – de-DE
  • Hebrew – he-IL
  • Hindi – hi-IN
  • Hungarian – hu-HU
  • Icelandic – is-IS
  • Indonesian – id-ID
  • Irish – ga-IE
  • Italian – it-IT
  • Japanese – ja-JP
  • Javanese – jv-ID
  • Kazakh – kk-KZ
  • Korean – ko-KR
  • Lao – lo-LA
  • Latvian – lv-LV
  • Lithuanian – lt-LT
  • Macedonian – mk-MK
  • Malay – ms-MY
  • Malayalam – ml-IN
  • Maltese – mt-MT
  • Marathi – mr-IN
  • Mongolian – mn-MN
  • Norwegian Bokmål – nb-NO
  • Pashto – ps-PK
  • Persian – fa-IR
  • Polish – pl-PL
  • Portuguese (Brazil) – pt-BR
  • Portuguese (Portugal) – pt-PT
  • Romanian – ro-RO
  • Russian – ru-RU
  • Serbian (Cyrillic script) – sr-Cyrl-RS
  • Slovak – sk-SK
  • Slovenian – sl-SI
  • Somali – so-SO
  • Spanish – es-ES
  • Spanish (Argentina) – es-AR
  • Spanish (Latin America) – es-419
  • Spanish (Mexico) – es-MX
  • Swahili – sw-KE
  • Swedish – sv-SE
  • Tagalog – tl-PH
  • Tamil – ta-IN
  • Thai – th-TH
  • Turkish – tr-TR
  • Ukrainian – uk-UA
  • Urdu – ur-PK
  • Uzbek – uzn-UZ
  • Vietnamese – vi-VN
  • Welsh – cy-GB

Standalone Profanity Detection API

Lara also offers a dedicated profanity detection endpoint that analyzes text without performing translation. This is useful for content moderation, compliance pipelines, and pre-translation screening.

Pricing:

For implementation details, see the SDK documentation.

 


 

This article is about:

  • Profanity detection and filtering in text translation
  • profanitiesHandling and profanitiesDetect API parameters
  • Standalone profanity detection API
  • Supported languages for profanity detection