Skip to content
Jay Nguyen
← All projects

Humanize AI Writing

In build

Detecting AI-generated text and rewriting it into natural prose — served from a self-hosted LLM rather than a paid API, which is where the interesting engineering constraints are.

LLMSelf-hostedNLP

The problem

AI-generated text has a recognisable sound: even, hedged and generic. People who use AI to draft, and then have to submit the result as their own voice, are left editing for tone by hand. At the same time, detection tools claim a certainty they do not have.

I wanted to explore both halves honestly: how reliably text can be recognised as machine-written, and how far a rewrite can move it toward a specific writer's own style, without sending anyone's drafts to a paid third-party API.

What I built

Humanize AI Writing is in build, and I label it that way on purpose. So far:

  • A rewriting tool that takes AI-written text and rewrites it to match a sample of the user's own writing.
  • A detection step that estimates how machine-like a passage reads, so a rewrite can be judged against something.
  • Self-hosted inference. Everything runs on a language model I host myself, on hardware I own.

How it works

The interesting constraints come from not using a paid API.

  • Fixed capacity. A self-hosted model on modest hardware has a ceiling on speed and size, so prompts, context length and queueing are design decisions, not afterthoughts.
  • Cost modelling before commitment. I modelled what the same usage would cost on a metered API before choosing to self-host.
  • A writer's sample drives the rewrite. Style is taken from the person's own text rather than from a generic "make it human" instruction.

What I learned

Detection is a probability, not a verdict. Any tool that says a passage is simply "AI" or "human" is overclaiming, and the honest design is an estimate with its limits visible.

Small models force clarity. When you cannot throw a large model at a problem, you have to be precise about what the task is.

It is not finished, and I would rather show it honestly in progress than polish it into something it is not yet. I will update this page when it ships.