Advanced Alerts offer the ability to filter your search queries by specific languages using the lang: operator. In an alert, the operator has to be paired with the language codes that you want to monitor or block in your alert.
In this article, we will teach you how to use the operator and how to add language codes to your query. Here are the topics that we will cover:
Language Operator - learn how to monitor or block languages from the alert
Language Codes - review the language codes available to add into your alert
Let's begin!
Language Operator
In the Advanced Alert, the dedicated operator for language monitoring is the lang: operator. When you create an alert, you can add the operator to your keyword search and it will filter your results.
The language operator is a data filter for the keywords that you are monitoring in your alert. When a new mention is fetched, Mention will determine the language of the post using information from the website's data.
⚙️ The language operator is a non-autonomous operator. It must be paired with a keyword search in your alert to work. The language operator will only work with keyword searches. It does not filter Monitored Pages.
--
Monitor Languages
If you want to monitor specific languages, you can write your query using this variation of the operator:
AND lang:
This will ensure that your query monitors the language codes that interest you. Let's take a look at an example:
In this query, your alert will fetch mentions when Nike Air Max appears on publications that are in the Spanish or French language. If a post has the text Nike Air Max, but the post is in another language, it will not be fetched.
--
Block Languages
If you want to block specific languages, you can write your query using this variation of the operator:
AND NOT lang:
This will ensure that your query does not fetch mentions from specific languages. Let's take a look at an example:
In this query, your alert will fetch mentions when Adidas appears on any publication that is not in English or German. This means that your alert will fetch mentions in Spanish, Italian, French, and more.
Language Codes List
In your Advanced Alert, you can add these language codes to your query:
af - Afrikaans
ar - Arabic
az - Azerbaijani
be - Belarusian
bg - Bulgarian
bn - Bengali
bs - Bosnian
ca - Catalan
cs - Czech
da - Danish
de - German
el - Greek
en - English
eo - Esperanto
es - Spanish
et - Estonian
fa - Persian
fi - Finnish
fil - Filipino
fr - French
gu - Gujarati
hi - Hindi
hr - Croatian
hu - Hungarian
hy - Armenian
is - Icelandic
it - Italian
iw - Hebrew
ja - Japanese
km - Khmer
kn - Kannada
ko - Korean
lt - Lithuanian
lv - Latvian
ml - Malayalam
mr - Marathi
ms - Malay
my - Burmese
nl - Dutch
no - Norwegian
pa - Punjabi
pl - Polish
ps - Pashto
pt - Portuguese
ro - Romanian
ru - Russian
si - Sinhala
sk - Slovak
sl - Slovenian
sr - Serbian
sv - Swedish
sw - Swahili
ta - Tamil
te - Telugu
th - Thai
tl - Tagalog
tr - Turkish
uk - Ukrainian
ur - Urdu
vi - Vietnamese
zh - Chinese
⚙️ If you do not choose a language, Mention will simply monitor the web for any publications that contain your keywords regardless of language.
Thank you! Please contact [email protected] if you have any questions.