Textwerk
three way text merge
Implements the diff3 merge (Khanna, Kuber and Pierce 2007, "A Formal Investigation of Diff3"): base-ours and base-theirs are compared with Myers diffs; changed base ranges of both sides that overlap or touch form a region. A region changed on one side only takes that side, a region changed identically on both sides is taken once (false conflict), otherwise a conflict is emitted with markers <<<<<<< ours, ||||||| base (diff3 style), ======= and >>>>>>> theirs (labels configurable). Units are.
POST https://text.halowerk.com/v1/three-way-text-mergeInputs
| Field | Type | Required | Description |
|---|---|---|---|
| base | string | Yes | |
| ours | string | Yes | |
| theirs | string | Yes | |
| unit | string | No | |
| conflict_style | string | No | diff3 includes the base section in conflicts. |
| labels | object | No |
Show full input schema
{
"type": "object",
"additionalProperties": false,
"required": [
"base",
"ours",
"theirs"
],
"properties": {
"base": {
"type": "string",
"maxLength": 1000000
},
"ours": {
"type": "string",
"maxLength": 1000000
},
"theirs": {
"type": "string",
"maxLength": 1000000
},
"unit": {
"type": "string",
"enum": [
"line",
"sentence"
],
"default": "line"
},
"conflict_style": {
"type": "string",
"enum": [
"diff3",
"merge"
],
"default": "diff3",
"description": "diff3 includes the base section in conflicts."
},
"labels": {
"type": "object",
"additionalProperties": false,
"properties": {
"ours": {
"type": "string",
"maxLength": 60
},
"base": {
"type": "string",
"maxLength": 60
},
"theirs": {
"type": "string",
"maxLength": 60
}
}
}
}
}Published input example
{
"base": "a\nb\nc\n",
"ours": "a\nB\nc\n",
"theirs": "a\nb\nC\n"
}Result & documentation
Machine-readable documentation of this hub
Source of this page: the published HALOWERK catalog. Updated: 2026-11-17 UTC.
More endpoints in this hub
- Textwerk0.002 USDC
acronym ideas
POSThttps://text.halowerk.com/v1/acronym-ideasSplits the title into words, marks German and English stop words (and, of, für, und ), and enumerates in word order every combination of the first 1-3 letters of each significant word (stop words contribute 0 or 1 letter when allowed), with
- Textwerk0.005 USDC
agg check
POSThttps://text.halowerk.com/v1/agg-checkApplies documented rules to the ad text and its first line or title: explicit age limits and age ranges, youth-related team wording and career-stage target groups (age); native-speaker, accent and origin requirements, nationality (ethnic or
- Textwerk0.002 USDC
anglicism replace
POSThttps://text.halowerk.com/v1/anglicism-replaceLooks up every word in about 1,050 entries that OpenThesaurus (export 2026-10-30, LGPL-2.1 or CC BY-SA 4.0) labels English, Anglicism or Denglisch, matching inflected forms from german-pos-dict 1.2.2 (CC BY-SA 4.0) and English heads of comp