Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class SpellingCorrection.
Spell check result.
Generated from protobuf message google.cloud.talent.v4.SpellingCorrection
Namespace
Google \ Cloud \ Talent \ V4
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ corrected
bool
Indicates if the query was corrected by the spell checker.
↳ corrected_text
string
Correction output consisting of the corrected keyword string.
↳ corrected_html
string
Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "..." html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software engineer".
getCorrected
Indicates if the query was corrected by the spell checker.
Returns
Type
Description
bool
setCorrected
Indicates if the query was corrected by the spell checker.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getCorrectedText
Correction output consisting of the corrected keyword string.
Returns
Type
Description
string
setCorrectedText
Correction output consisting of the corrected keyword string.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getCorrectedHtml
Corrected output with html tags to highlight the corrected words.
Corrected words are called out with the "..." html tags.
For example, the user input query is "software enginear", where the second
word, "enginear," is incorrect. It should be "engineer". When spelling
correction is enabled, this value is
"software engineer".
Returns
Type
Description
string
setCorrectedHtml
Corrected output with html tags to highlight the corrected words.
Corrected words are called out with the "..." html tags.
For example, the user input query is "software enginear", where the second
word, "enginear," is incorrect. It should be "engineer". When spelling
correction is enabled, this value is
"software engineer".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Talent Solution V4 Client - Class SpellingCorrection (2.1.3)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.3 (latest)](/php/docs/reference/cloud-talent/latest/V4.SpellingCorrection)\n- [2.1.2](/php/docs/reference/cloud-talent/2.1.2/V4.SpellingCorrection)\n- [2.0.2](/php/docs/reference/cloud-talent/2.0.2/V4.SpellingCorrection)\n- [1.3.5](/php/docs/reference/cloud-talent/1.3.5/V4.SpellingCorrection)\n- [1.2.2](/php/docs/reference/cloud-talent/1.2.2/V4.SpellingCorrection)\n- [1.1.1](/php/docs/reference/cloud-talent/1.1.1/V4.SpellingCorrection)\n- [1.0.5](/php/docs/reference/cloud-talent/1.0.5/V4.SpellingCorrection) \nReference documentation and code samples for the Google Cloud Talent Solution V4 Client class SpellingCorrection.\n\nSpell check result.\n\nGenerated from protobuf message `google.cloud.talent.v4.SpellingCorrection`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Talent \\\\ V4\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCorrected\n\nIndicates if the query was corrected by the spell checker.\n\n### setCorrected\n\nIndicates if the query was corrected by the spell checker.\n\n### getCorrectedText\n\nCorrection output consisting of the corrected keyword string.\n\n### setCorrectedText\n\nCorrection output consisting of the corrected keyword string.\n\n### getCorrectedHtml\n\nCorrected output with html tags to highlight the corrected words.\n\nCorrected words are called out with the \"***...*** \" html tags.\nFor example, the user input query is \"software enginear\", where the second\nword, \"enginear,\" is incorrect. It should be \"engineer\". When spelling\ncorrection is enabled, this value is\n\"software ***engineer***\".\n\n### setCorrectedHtml\n\nCorrected output with html tags to highlight the corrected words.\n\nCorrected words are called out with the \"***...*** \" html tags.\nFor example, the user input query is \"software enginear\", where the second\nword, \"enginear,\" is incorrect. It should be \"engineer\". When spelling\ncorrection is enabled, this value is\n\"software ***engineer***\"."]]