Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Automatic Passage Language

No security coverage Under active development

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.

Ask your assistant about Automatic Passage Language

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Nov 2026
Latest release
12 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0-alpha1 Pre-release 11 Nov 18, 2026