---
title: Deploy LanguageTool with AI on Blossom
url: "/deploy/languagetool/"
canonical_url: https://blossom88.com/deploy/languagetool/
markdown_url: https://blossom88.com/deploy/languagetool.md
summary: Check your first sentence with a private LanguageTool API on Blossom.
categories:
- deployment
- developer-tools
stack:
- Java
- LanguageTool
- HTTP API
---

# Deploy LanguageTool with AI on Blossom

[LanguageTool](https://github.com/languagetool-org/languagetool) checks
spelling and grammar. Use its open-source server to get suggestions
from an API your app can call on its private network.

## Ask Your Agent

> **Ask your AI agent:** Deploy a private LanguageTool API on Blossom and help me check a sentence from my app.
>
> Follow this guide: https://blossom88.com/deploy/languagetool/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## How It Runs

| Part | Role | Where |
|---|---|---|
| LanguageTool | Applies built-in spelling and grammar rules | App Capacity |

## Deploy LanguageTool

Use a [community image](https://github.com/Erikvl87/docker-languagetool)
listed by the LanguageTool project. Run it as a private Service on
port 8010. Use `/v2/languages` for readiness.

<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

Use the built-in rules for this workflow. Choose the languages
your app needs. The [upstream server guide](https://dev.languagetool.org/http-server)
describes optional datasets and client setup.

</details>

<details class="optional-reading" markdown="1">
<summary>Commands your agent runs</summary>

    blossom app_plan:preview --data languagetool-plan.yml
    blossom service:create --data languagetool-service.yml
    blossom environment:deploy --id environment-100 --follow

</details>

## Check and Fix a Sentence

Send “I has a apple.” to `POST /v2/check` with the language
set to `en-US`. Try both suggestions and submit “I have an apple.”
The rule matches should clear.

![Find two suggested corrections in a sample sentence.](/deploy/assets/images/languagetool/first-grammar-suggestions.webp)

> **Ask your AI agent:** Use LanguageTool to check a sentence with two mistakes, then check it again with both fixes.

> Follow this guide: https://blossom88.com/deploy/languagetool/



## Recheck After an Update

Keep the runtime configuration when you replace the Container. Send
the original sentence through your app to confirm it gets the same
suggestions.

![Recheck the corrected sentence after Container replacement.](/deploy/assets/images/languagetool/corrected-after-replacement.webp)

## What You Get

- A private spelling and grammar API
- Suggested replacements for a sample sentence
- The same checks after a Container update

Tested on Blossom: The private API returned both corrections before and after Container replacement and no matches for the corrected sentence.
