Example workflows
Document writing
While writing a document, you can check the paragraph to be edited and update the results dynamically.
Post current paragraph content
POST /congree/api/Linguistic/v1/Check?ruleSet={rulesetName}
Check the document
- Update Language Check results for the current paragraph.
- Extract and update terminology candidates from the result if ExtractTermCandidates in options is true. Terminology candidates can be obtained from array TermCandidates in the result.
- Extract terms from notifications. It is a notification with type Terminology. You need to get BaseTermForm from Proposals array in the notification. ConceptId contains the concept id of proposed terms as stated in the Style Guide.
Search for extracted terms in your terminology system and update the terminology results for the current paragraph.
GET
/congree/api/Terminology/v1/SearchTerm?ruleSet={ruleSetName}&term={term text}&culture={CultureName}
Search term in terminology system
Batch document check
The batch document check can be used to check the entire document and save the report containing the document quality data.
Post all document content (with enabled reporting) and get the TaskId from result
POST /congree/api/Linguistic/v1/StartCheckTask?ruleSet={rulesetName}
Check the document
Periodically check the task state
GET
/congree/api/Tasks/v1/Status/{taskId}
Get task status
Get the Language Check result after task complete.
GET
/congree/api/Tasks/v1/Result/{taskId}
Get task result
- Extract and update terminology candidates from result if ExtractTermCandidates in options is true. Terminology candidates can be obtained from array TermCandidates in result.
- Extract terms from notifications. It is a notification with type Terminology. You need to get BaseTermForm from Proposals array in notification. ConceptId contains the concept id of proposed terms as stated in the Style Guide.
Search for extracted terms in your terminology system and update the terminology results for the current document.
GET
/congree/api/Terminology/v1/SearchTerm?ruleSet={ruleSetName}&term={term text}&culture={CultureName}
Search term in terminology system
Create a Language Check Report based on the object Reporting from the Language Check result. Post the report to the Congree database.
POST
/congree/api/Reporting/v1/Linguistic
Stores the linguistic report.