Research overview

Tool deep dive

Style rewriter

Rewrites a Sinhala news article in one of five newspaper styles while keeping the facts the same.

Built by Sandun Hettiarachchi

How it works

  • Trained on filtered rewrites

    The training data is machine-written rewrites that passed strict filters for copying, repetition, factual consistency, structure, script and length. About a third survived.

  • Meaning first

    The prompt tells the model to keep the meaning unchanged and to use natural Sinhala.

  • Shared base, swapped adapter

    The style adapter sits beside the grammar, headline and summary adapters on the same base model, and the inference server swaps the right one in for each request.

  • An honest evaluation

    The paper’s style score is a development diagnostic, not an accuracy measure. It says a test with the production prompt is still needed, so treat the style results as preliminary.

The five styles

  • Formal news — Standard broadcast and broadsheet tone: objective and structured.
  • Sports reporting — Dynamic, action-oriented wording that matches live sports coverage.
  • Youth and culture — Modern, conversational wording for younger readers and digital-first formats.
  • Editorial opinion — Authoritative and reflective, with a clear point of view.
  • Feature story — Narrative and descriptive, built for long-form reading.

The model and its data

Evaluated adapter
v13
LoRA rank / alpha
r=24, α=48
Trainable parameters
62,914,560
Training epochs
3
Dataset
7,555 rewrites · Article, target style and rewritten article · Kept from 22,236 candidates (34.0%)

These are the versions evaluated in the paper, not necessarily the versions running in the app today.

Measured results

  • 0.784

    Overlap with reference rewrites (ROUGE-L)

    Measured on: 75 outputs (15 per style)

    A development diagnostic, not a style-accuracy score: it ranges from 0.730 (editorial) to 0.892 (formal), and the paper says a production-prompt test is still needed.

  • 0%

    Outputs that simply copy the input

    Measured on: 75 outputs (15 per style)

    Earlier data had serious copying and repetition; the final data pipeline removed it.

A lesson from this tool

Most generated training data was unusable

For the style rewriter, only about a third of the machine-written examples were good enough to keep.

The problem
Generated rewrites often copied the source, repeated phrases, changed facts or broke the script.
What we found
Only 7,555 of 22,236 candidates (34.0%) passed the checks for copying, repetition, factual consistency, structure, script and length.
What we did
Kept only the passing examples. The v13 adapter trained on them shows a 0% direct-copy rate in the paper’s diagnostic.

What testers said about it

13 people rated these statements from 1 to 5 in 27–31 August 2026. It is a small, self-selected pilot.

The rewritten text kept the original meaning.

4.2 / 5 · 11 of 13 rated 4–5

The rewritten text was natural and professional.

4.2 / 5 · 10 of 13 rated 4–5

The style rewriter is useful for journalism work.

4.4 / 5 · 11 of 13 rated 4–5

  • 1 (disagree)
  • 2
  • 3
  • 4
  • 5 (agree)

Next deep dive

News summarizer

Read about the news summarizer