Maspik Documentation

Language Restriction

The language restriction options in the Maspik plugin allow you to control which languages are required or forbidden in the textarea fields of your forms. This can help ensure that form submissions are in the desired language and block submissions in unwanted languages.

Required Languages

Description: This option specifies the languages that must be present in the textarea field. If the specified languages are not found in the textarea, the message will be marked as spam.

How to Use:

  1. Open the plugin settings.
  2. Navigate to the Language Restriction section.
  3. Select the languages that are required in the textarea field from the multiple-choice field.

Example: If you require messages to include either English or Spanish, select English and Spanish from the list. Any message that does not contain text in these languages will be marked as spam.

Note: For Latin languages, the check includes Latin letters and diacritical marks to reduce false positives. For example:

  • German: the check will look for any of the following letters A-Z a-z ÄäÖöÜüß
  • Spanish: check will look for any of the following letters A-Z a-z ÁÉÍÓÚáéíóúüÜñÑ]

Risk: Setting required languages may block legitimate messages that do not contain even a single character specified languages. Regularly check the spam log to ensure valid messages are not being blocked.

Custom Error Message for Required Languages

Description: This option allows you to set a custom error message that will be displayed when the required languages are not present in the textarea field.

How to Use:

  1. Open the plugin settings.
  2. Navigate to the Language Restriction section.
  3. Enter your custom error message.

Example: Enter a message like “Your message must include English or Spanish text.”


Forbidden Languages

Description: This option specifies the languages that are not allowed in the textarea field. If any of the specified languages are detected in the textarea, the message will be marked as spam.

How to Use:

  1. Open the plugin settings.
  2. Navigate to the Language Restriction section.
  3. Select the languages that are forbidden in the textarea field from the multiple-choice field.

Example: If you want to block messages that contain Russian or Chinese text, select Russian and Chinese from the list. Any message that contains text in these languages will be marked as spam.

Note: For Latin languages, the check includes only diacritical marks to reduce false positives. For example:

  • German: check will look for any of the following letters ÄäÖöÜüß
  • Spanish: check will look for any of the following letters ÉÍÓÚáéíóúüÜñÑ

Risk: Setting forbidden languages too broadly may block legitimate messages that contain even a single character in the specified languages. Regularly check the spam log to ensure valid messages are not being blocked.

Custom Error Message for Forbidden Languages

Description: This option allows you to set a custom error message that will be displayed when forbidden languages are detected in the text area field.

How to Use:

  1. Open the plugin settings.
  2. Navigate to the Language Restriction section.
  3. Enter your custom error message.

Example: Enter a message like “Your message contains forbidden language characters.”