About · Research · Publications · CV · News · Contact
Sublanguage Alignment
Does synthetic domain text sound like the domain, or does it only talk about it?
When real domain data cannot be shared, as is often the case in medicine, text generated by LLMs is a tempting substitute. Most ways of checking such text ask whether it is fluent, on topic, semantically close to real examples, or factually correct. They rarely ask whether it is written the way the domain writes. A synthetic corpus can pass all of these checks and still miss the linguistic profile of the domain it is meant to stand in for.
Linguists call that profile a sublanguage: the restricted variety of a language that forms around a specialized field such as medicine, law, or science, with its own terminology and recurring lexical and grammatical patterns. In our new paper, accepted to Findings of EACL 2027, we propose a way to measure whether generated text preserves it.
The idea: Add a reference corpus
Comparing synthetic text directly with authentic text shows that the two differ, but not whether the differences matter. We therefore add a third corpus, i.e., a general, out-of-domain human text that serves as a shared reference. Authentic domain text departs from this reference in characteristic ways. Sublanguage alignment asks whether synthetic domain text departs from it in the same way: In the same features, in the same direction, and by a similar amount.

We measure this on two levels:
| Level | Question | Measure |
|---|---|---|
| Univariate (primary) | Does the synthetic text reproduce the individual features that set the domain apart? | Recall of domain-divergent features, and agreement in the direction of each effect |
| Multivariate (exploratory) | Does a classifier trained on authentic data separate synthetic domain text from the reference as well as it separates the real domain text? | Paired difference in balanced accuracy (random forests) |
On the univariate level, we combine three divergence measures (Cohen's d, Wasserstein distance, and Jensen–Shannon divergence) and count a feature as divergent only if it passes a permutation test with false discovery rate correction. Note, however, that the framework should also work with other feature sets and divergence measures.
The experiment
| Component | Setup |
|---|---|
| Domain corpus | 30,000 sentences per language from regulatory biomedical documents of the European Medicines Agency (OPUS EMA) |
| Reference corpus | 30,000 sentences per language from news, web, and Wikipedia text (Leipzig Wortschatz) |
| Languages | Dutch, English, French, German, Italian, Polish, Romanian, Spanish, Swedish |
| Features | 221 sentence-level linguistic features, extracted with LFTK |
| Models | 37 general-purpose and biomedical LLMs, including models built for individual languages |
| Generation | Completion: continue the first third of a real EMA sentence. Prompt: write a sentence that could appear in an EMA document, without an example. |
| Calibration | Baseline: a unigram sampler that draws biomedical words by frequency, with no grammar. Upper bound: a held-out sample of real EMA sentences. |
What we found
The domain signal is real. In the authentic data, EMA text differs from general text in a consistent set of features. A classifier trained on all features separates the two with a balanced accuracy of .85 to .88 in every language, and part of the signal carries across languages: trained on eight languages, the classifier still reaches .73 to .80 on the ninth. The real-data upper bound recovers 86.97% of the domain-divergent features.
LLMs get the direction right but miss most of the profile.
| Condition | Domain-divergent features recovered |
|---|---|
| Upper bound (real EMA sentences) | 86.97% |
| Unigram sampler (no grammar) | 24.85% |
| LLMs, completion setting | 22.90% |
| LLMs, prompt setting | 12.36% |
| LLMs, overall | 17.63% |
On average, the LLMs recovered fewer of the features that distinguish EMA text than a sampler that strings words together without any grammar. When they did reproduce a feature, they almost always shifted it in the right direction: direction agreement was perfect except for 13 model–setting combinations. Models differed widely. The best, LLaMmlein 7B in the prompt setting, recovered 52.03% of the features; Gemma 3 12B recovered none in either setting.
Syntax is the weakest spot. Restricted to syntactic features, the LLMs recovered 4.76% of the domain-divergent features, compared with 16.67% for the unigram sampler.
Completion beats prompting. Anchoring generation on the beginning of a real sentence led to better and more consistent alignment across languages than asking for a domain sentence from scratch.
The multivariate level needs care. Our calibration showed that the classifier-based contrast does not isolate linguistic fidelity: the upper bound ended up farther from the ideal value than the grammar-free baseline (.044 vs. .009). We therefore treat the multivariate results as an exploratory diagnostic and base our conclusions on the univariate analysis.
So what?
A synthetic corpus that reads well and stays on topic can still drift away from the language of its domain, and in biomedical NLP, where synthetic text is often proposed as a stand-in for data that cannot be shared, this drift is easy to overlook. Sublanguage alignment offers a screening step before synthetic text is used as domain data. It does not replace checks of factuality or meaning; it adds the linguistic layer those checks leave out.
Resources
Citation
Until the Findings proceedings are published, please cite the preprint:
@misc{hofenbitzer2026sublanguage,
title = {Sublanguage Alignment: A Linguistically-Grounded Evaluation Method for Domain-Specific Text Generation},
author = {Hofenbitzer, Justin and Lammert, Jacqueline and Haller, Bernhard and Boeker, Martin and Frassinelli, Diego},
year = {2026},
eprint = {2612.01747},
archivePrefix = {arXiv},
primaryClass = {cs.CL},
doi = {10.48550/arXiv.2612.01747},
url = {https://arxiv.org/abs/2612.01747},
note = {Accepted to Findings of EACL 2027}
}