Detect langauge

This feature detects language of the text, powered by the Google

Last published at: February 24th, 2025

clsGoogleDetectLanguage Step

Description:

This step detects the language of the text, powered by Google AI services. 

 

Inputs

  • textToDetect - Enter text to detect
  • varGlobalToStoreValue - Variable / Global to store the language
  • varGlobalToStoreReliability - Variable / Global to store reliability
  • varGlobalToStoreConfidence - Variable / Global to store confidence level
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute 
 

 

 

Usage:

 

 

Example:

Let’s build and execute the “GoogleDetectLanguageDef” example.          

  • Create a new process definition called “GoogleDetectLanguageDef” and open the definition in designer mode. 
  • Drag a “GoogleDetectLanguage” step to the canvas. 
  • Connect the dots between the “Start” step and “GoogleDetectLanguage” steps, as shown above. 
  • Define a few variables or globals to store the language check result, reliability, and confidence level values.
  • Click the “GoogleDetectLanguage” step to configure its “Required” properties. Provide a name for the step. Provide the non-English text to detect. Provide a variable or global reference to store the language result. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 
     

 

  • Click the “GoogleDetectLanguage” step to configure its “Optional” properties. Provide the variable or global reference to store the reliability and confidence level values. Click the Save button. 

 

  • Save the process definition, create a process instance, and then execute it. The Step should detect the language of the text provided during runtime. Render the process instance and verify the step properties.

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page. 

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after import. Then, save the definition to confirm the changes. 

Click here to download the sample file.