Bidi Check
by text.halowerk.com in AI models & inference
Check text, code, file names or identifiers for bidirectional control characters (Trojan Source, RLO file-name spoofing), unbalanced embeddings/isolates and paragraph direction. Lists all bidi controls (ALM, LRM, RLM, LRE, RLE, PDF, LRO, RLO, LRI, RLI, FSI, PDI) with position and name, tracks the embedding/isolate stack per paragraph as in UAX #9 (X1–X8, paragraph separators of class B) and reports unterminated or stray controls.
https://text.halowerk.com/v1/bidi-check- Price
- $0.002
- per call in USDC
- Uptime
- 96.3%
- last 30 days
- Response time
- 41 ms
- 172 ms slowest 5%
- Last check
- Passed
- 4 h ago, next any minute now
This listing's own text contains instructions aimed at AI agents (see the security scan below). We withhold that text from agents and never recommend this service.
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
POST https://text.halowerk.com/v1/bidi-check
Each call costs $0.002 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
The listing's own example input is withheld: it contains instructions aimed at AI agents. Built from the input schema. Replace the values with your own.
POST https://text.halowerk.com/v1/bidi-check
content-type: application/json
{
"text": "example"
}Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
context | string | No | Where the text is used; code, file names and identifiers are graded more strictly. One of: text, code, filename, identifier. Default: "text". |
return_sanitized | boolean | No | Also return the text with all bidi controls removed. Default: false. |
text | string | Yes | Text, source code, file name or identifier. |
Example response
The provider's example. We can't check it without paying.
Example response, 46 lines
{
"limitations": [
"The full UAX #9 reordering is not computed; the displayed form is only approximated for a single override in a file name.",
"Whether a control sits inside a comment or string literal is not parsed."
],
"result": {
"contains_rtl": false,
"context": "filename",
"control_count": 1,
"controls": [
{
"abbreviation": "RLO",
"code_point": "U+202E",
"name": "RIGHT-TO-LEFT OVERRIDE",
"offset": 8,
"paragraph": 0
}
],
"displayed_extension_approx": "pdf",
"displayed_name_approx": "rechnungexe.pdf",
"paragraphs": [
{
"base_direction": "ltr",
"has_rtl_characters": false,
"implicitly_closed_by_pdi": [],
"index": 0,
"offset": 0,
"stray": [],
"unterminated": [
{
"abbreviation": "RLO",
"kind": "override",
"offset": 8
}
]
}
],
"real_extension": "exe",
"real_name": "rechnungfdp.exe",
"risk": "high",
"stray_total": 0,
"unterminated_total": 1
},
"service": "bidi-check",
"status": "success"
}Call it from code
The curl command shows the payment challenge.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://text.halowerk.com/v1/bidi-check' \
-H 'content-type: application/json' \
--data-raw '{"text":"example"}'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://text.halowerk.com/v1/bidi-check' \
-H 'content-type: application/json' \
--data-raw '{"text":"example"}' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeWe don't show code that pays this service: its listing contains instructions aimed at AI agents.
Security scan
1 finding
- Invisible Unicode characters in example_input
{"context":"filename","text":"rechnung[U+202E]fdp.exe"}
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 39 ms | $0.002 |
| 15 h ago | Passed | 402 | 43 ms | $0.002 |
| 25 h ago | Passed | 402 | 135 ms | $0.002 |
| 35 h ago | Passed | 402 | 43 ms | $0.002 |
| 45 h ago | Passed | 402 | 40 ms | $0.002 |
Show 10 older checks
| 2 days ago | Passed | 402 | 218 ms | $0.002 |
| 4 days ago | Timed out | - | - | - |
| 6 days ago | Passed | 402 | 41 ms | $0.002 |
| 6 days ago | Passed | 402 | 137 ms | $0.002 |
| 7 days ago | Passed | 402 | 172 ms | $0.002 |
| 7 days ago | Passed | 402 | 114 ms | $0.002 |
| 7 days ago | Passed | 402 | 39 ms | $0.002 |
| 8 days ago | Passed | 402 | 41 ms | $0.002 |
| 8 days ago | Passed | 402 | 41 ms | $0.002 |
| 8 days ago | Passed | 402 | 118 ms | $0.002 |