This project is not covered by Drupal’s security advisory policy.
Automatic Passage Language marks paragraphs written in a different language from the surrounding content. It adds a lang attribute to an existing paragraph, which helps assistive technology use the appropriate pronunciation.
Usage
Enable the module and inject the automatic_passage_language.annotator service. Pass it an HTML fragment, the inherited language, and optionally a list of primary language codes. The module does not change any content on its own. The calling module decides what to scan and whether to save the result.
Detection runs locally. It handles whole paragraphs, leaves existing language markup alone, and does not distinguish regional varieties such as US and UK English. Check the detector on representative content before using it in an editorial workflow.
Requirements
Drupal 11, Composer, and the PHP intl and mbstring extensions. Composer installs Efficient Language Detector. A text format used for annotated content must allow lang on paragraphs.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.- Project categories: Accessibility, Multilingual
- Created by u_tiwari on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
