projects/{pid}/wordcounts/{did}/{trg} (PUT)

projects/{pid}/wordcounts/{did}/{trg} (PUT)

Update word counts of a document for a specific target language.

Please note that this method requires that word count details already exist for the document and the target language.

URL

(PUT) /api/projects/{pid}/wordcounts/{did}/{tloc}

PARAMETERS

The URL parameters are:

pid

The project id

int, Required

did

If set, returns word counts for this specific document only. Identifies document by its document id.

int, Required

trg

The target locale for which to update a word count. The locale must be a valid locale in the project.

string, Required

 

The body is a JSON object with these properties. All properties are optional. This gives you the freedom to make granular changes.

 

Global counts

 

words

Total words.

int?, Optional

chars

Total characters

int?, Optional

pages

Total pages

decimal?, Optional

minutes

Total minutes to work or worked

int?, Optional

wordsExcluded

Total words not included in this word count. For information purposes.

int?, Optional

charsTranslated

Total characters of translated content

int?, Optional

wordsTranslated

Total words of translated content

int?, Optional

 

 

 

 

Pretranslated words

 

wdPretransIdentical

Total pretranslated words, whether pretranslations are 100%, 110% or MT.

int?, Optional

wdPretransIdenticalCtx

Among wdPretransIdentical, the 110% pretranslated words. Also called perfect or in-context match.

int?, Optional

wdPretransIdenticalPrevCtx

Among wdPretransIdentical, the 110% pretranslated words, leveraged from the previous document version.

int?, Optional

wdPretransIdenticalPrev

Among wdPretransIdentical, the 100% pretranslated words, leveraged from the previous document version.

int?, Optional

wdPretransIdenticalMT

Among wdPretransIdentical, the machine translated words

int?, Optional

wdPretransFuzzy

<100% pretranslated words

 

 

 

 

 

Fuzzy matches (not used for pre-translation) and repetitions

 

wdMatch1

Total words falling into interval #1. The intervals (minimum % to maximum %) are configured in the project word count profile.

int?, Optional

wdMatch2

Total words falling into interval #2.

int?, Optional

wdMatch3

Total words falling into interval #3.

int?, Optional

wdMatch4

Total words falling into interval #4.

int?, Optional

wdMatch5

Total words falling into interval #5.

int?, Optional

 

 

 

 

Advanced. These properties are for information only. You are not required to populate these in word counts.

 

tags

Total amount of markup

int?, Optional

spaces

Total count of whitespace characters

int?, Optional

punctuation

Total punctuation characters

int?, Optional

nonAsianWords

Total non-Asian words

int?, Optional

asianCharacters

Total Asian characters (Japanese, Chinese, Korean signs)

int?, Optional

 

REMARKS

The different count fields need to sum up correctly and the method automatically corrects any inconsistencies:

  • total will be increased if it is smaller than the sum of  wdPretransIdenticalwdPretransFuzzywdMatch1 ... + wdMatch5

  • wdPretransIdentical will be increased if smaller than sum of: wdPretransIdenticalCtxwdPretransIdenticalPrevCtxwdPretransIdenticalPrevwdPretransIdenticalMT

  • wdMatchnn will be cleared if the specific interval is not configured in the project's word count profile.

There may be other inconsistencies that will be auto-corrected.

 

RESULTS

Returns a JSON object with the word count details for the document and language.

[{ "wcid": 14, "did": 14, "locs": "en", "loct": "fr", "dt": "2016-07-04T16:05:20.86", "words": 255, "chars": 1500, "pages": null, "minutes": null, "wordsExcluded": 0, "charsTranslated": null, "wordsTranslated": null, "wdPretransIdentical": 0, "wdPretransIdenticalCtx": 0, "wdPretransIdenticalPrevCtx": 0, "wdPretransIdenticalPrev": 0, "wdPretransIdenticalMT": 0, "wdPretransFuzzy": 0, "wd110": 0, "wd100": 0, "wdMatch1": 0, "wdMatch2": 0, "wdMatch3": 0, "wdMatch4": 0, "wdMatch5": 0, "tags": 0, "spaces": 155, "punctuation": 59, "nonAsianWords": 255, "asianCharacters": 0 }]

 

 





Copyright Wordbee - Buzzin' Outside the Box since 2008