Skip to content

Commit 92829aa

Browse files
authored
Merge pull request #246977 from PatrickFarley/content-safety-updates
[cog svcs] add language-support
2 parents b2dd186 + 617406e commit 92829aa

File tree

3 files changed

+143
-2
lines changed

3 files changed

+143
-2
lines changed
Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
---
2+
title: Language support - Content Safety
3+
titleSuffix: Azure AI services
4+
description: This is a list of natural languages that the Content Safety API supports.
5+
services: cognitive-services
6+
author: PatrickFarley
7+
manager: nitinme
8+
ms.service: cognitive-services
9+
ms.subservice: content-safety
10+
ms.topic: conceptual
11+
ms.date: 08/01/2023
12+
ms.author: pafarley
13+
14+
---
15+
16+
# Language support for Content Safety
17+
18+
Some capabilities of Azure Content Safety support multiple languages; any capabilities not mentioned here only support English.
19+
20+
## Text moderation
21+
22+
The Content Safety text moderation feature supports many languages, but it has been specially trained and tested on a smaller set of languages.
23+
24+
> [!NOTE]
25+
> **Language auto-detection**
26+
>
27+
> You don't need to specify a language code for text moderation; the service automatically detects your input language.
28+
29+
| Language name | Language code | Text moderation | Specially trained |
30+
|-----------------------|---------------|--------|--|
31+
| Afrikaans | `af` | ✔️ | |
32+
| Albanian | `sq` | ✔️ | |
33+
| Amharic | `am` | ✔️ | |
34+
| Arabic | `ar` | ✔️ | |
35+
| Armenian | `hy` | ✔️ | |
36+
| Azerbaijani | `az` | ✔️ | |
37+
| Bangla | `bn` | ✔️ | |
38+
| Basque | `eu` | ✔️ | |
39+
| Belarusian | `be` | ✔️ | |
40+
| Bulgarian | `bg` | ✔️ | |
41+
| Bulgarian (Latin) | `bg-Latn` | ✔️ | |
42+
| Burmese | `my` | ✔️ | |
43+
| Catalan | `ca` | ✔️ | |
44+
| Cebuano | `ceb` | ✔️ | |
45+
| Chinese | `zh` | ✔️ | ✔️ |
46+
| Chinese (Latin) | `zh-Latn` | ✔️ | |
47+
| Corsican | `co` | ✔️ | |
48+
| Croatian | `hr` | ✔️ | |
49+
| Czech | `cs` | ✔️ | |
50+
| Danish | `da` | ✔️ | |
51+
| Dutch | `nl` | ✔️ | |
52+
| English | `en` | ✔️ | ✔️ |
53+
| Esperanto | `eo` | ✔️ | |
54+
| Estonian | `et` | ✔️ | |
55+
| Filipino | `fil` | ✔️ | |
56+
| Finnish | `fi` | ✔️ | |
57+
| French | `fr` | ✔️ | ✔️ |
58+
| Galician | `gl` | ✔️ | |
59+
| Georgian | `ka` | ✔️ | |
60+
| German | `de` | ✔️ | ✔️ |
61+
| Greek | `el` | ✔️ | |
62+
| Greek (Latin) | `el-Latn` | ✔️ | |
63+
| Gujarati | `gu` | ✔️ | |
64+
| Haitian | `ht` | ✔️ | |
65+
| Hausa | `ha` | ✔️ | |
66+
| Hawaiian | `haw` | ✔️ | |
67+
| Hebrew | `iw` | ✔️ | |
68+
| Hindi | `hi` | ✔️ | |
69+
| Hindi (Latin script) | `hi-Latn` | ✔️ | |
70+
| Hmong, Mong | `hmn` | ✔️ | |
71+
| Hungarian | `hu` | ✔️ | |
72+
| Icelandic | `is` | ✔️ | |
73+
| Igbo | `ig` | ✔️ | |
74+
| Indonesian | `id` | ✔️ | |
75+
| Irish | `ga` | ✔️ | |
76+
| Italian | `it` | ✔️ | ✔️ |
77+
| Japanese | `ja` | ✔️ | ✔️ |
78+
| Japanese (Latin) | `ja-Latn` | ✔️ | |
79+
| Javanese | `jv` | ✔️ | |
80+
| Kazakh | `kk` | ✔️ | |
81+
| Khmer | `km` | ✔️ | |
82+
| Korean | `ko` | ✔️ | |
83+
| Kurdish | `ku` | ✔️ | |
84+
| Kyrgyz | `ky` | ✔️ | |
85+
| Lao | `lo` | ✔️ | |
86+
| Latin | `la` | ✔️ | |
87+
| Latvian | `lv` | ✔️ | |
88+
| Lithuanian | `lt` | ✔️ | |
89+
| Luxembourgish | `lb` | ✔️ | |
90+
| Macedonian | `mk` | ✔️ | |
91+
| Malagasy | `mg` | ✔️ | |
92+
| Malay | `ms` | ✔️ | |
93+
| Malayalam | `ml` | ✔️ | |
94+
| Maltese | `mt` | ✔️ | |
95+
| Maori | `mi` | ✔️ | |
96+
| Marathi | `mr` | ✔️ | |
97+
| Mongolian | `mn` | ✔️ | |
98+
| Nepali | `ne` | ✔️ | |
99+
| Nyanja | `ny` | ✔️ | |
100+
| Norwegian | `no` | ✔️ | |
101+
| Pashto | `ps` | ✔️ | |
102+
| Persian | `fa` | ✔️ | |
103+
| Polish | `pl` | ✔️ | |
104+
| Portuguese | `pt` | ✔️ | ✔️ |
105+
| Punjabi | `pa` | ✔️ | |
106+
| Romanian | `ro` | ✔️ | |
107+
| Russian | `ru` | ✔️ | |
108+
| Russian (Latin) | `ru-Latn` | ✔️ | |
109+
| Scottish Gaelic | `gd` | ✔️ | |
110+
| Serbian | `sr` | ✔️ | |
111+
| Shona | `sn` | ✔️ | |
112+
| Sindhi | `sd` | ✔️ | |
113+
| Sinhala | `si` | ✔️ | |
114+
| Slovak | `sk` | ✔️ | |
115+
| Slovenian | `sl` | ✔️ | |
116+
| Somali | `so` | ✔️ | |
117+
| Southern Sotho | `st` | ✔️ | |
118+
| Spanish | `es` | ✔️ | ✔️ |
119+
| Sundanese | `su` | ✔️ | |
120+
| Swahili | `sw` | ✔️ | |
121+
| Swedish | `sv` | ✔️ | |
122+
| Tajik | `tg` | ✔️ | |
123+
| Tamil | `ta` | ✔️ | |
124+
| Telugu | `te` | ✔️ | |
125+
| Thai | `th` | ✔️ | |
126+
| Turkish | `tr` | ✔️ | |
127+
| Ukrainian | `uk` | ✔️ | |
128+
| Unknown language | `und` | ✔️ | |
129+
| Urdu | `ur` | ✔️ | |
130+
| Uzbek | `uz` | ✔️ | |
131+
| Vietnamese | `vi` | ✔️ | |
132+
| Welsh | `cy` | ✔️ | |
133+
| Western Frisian | `fy` | ✔️ | |
134+
| Xhosa | `xh` | ✔️ | |
135+
| Yiddish | `yi` | ✔️ | |
136+
| Yoruba | `yo` | ✔️ | |
137+
| Zulu | `zu` | ✔️ | |

articles/ai-services/content-safety/overview.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ Currently, the public preview features are available in the **F0 and S0** pricin
101101

102102
## Service limits
103103

104-
### Language availability
104+
### Language support
105105

106-
This API supports eight languages: English, German, Japanese, Spanish, French, Italian, Portuguese, Chinese. You don't need to specify a language code for text analysis; we automatically detect your input language.
106+
Content Safety models have been specifically trained and tested on the following languages: English, German, Japanese, Spanish, French, Italian, Portuguese, and Chinese. However, the service can work in many other languages, but the quality may vary. In all cases, you should do your own testing to ensure that it works for your application.
107+
108+
For more information, see [Language support](/azure/ai-services/content-safety/language-support).
107109

108110
### Region / location
109111

articles/ai-services/content-safety/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ items:
66
items:
77
- name: Content Safety overview
88
href: overview.md
9+
- name: Language support
10+
href: language-support.md
911
- name: Pricing
1012
href: https://aka.ms/content-safety-pricing
1113
expanded: true

0 commit comments

Comments
 (0)