// Ġ" text " Ġis Ġa Ġstring Ġcontaining Ġthe Ġinput Ġdocument . Ċ // ĠFor ĠUS ĠEnglish , Ġset Ġ" language Code " Ġto Ġ" en ". Ċ Ċ val Ġclient Ġ= ĠAmazon Comp rehend Client Builder ĊĠĠĠ Ġ. standard () ĊĠĠĠ Ġ. with Credentials ( credentials Provider ) ĊĠĠĠ Ġ. with Region ( Regions . US _ EAST _ 1 ) ĊĠĠĠ Ġ. build () Ċ Ċ val Ġrequest Ġ= ĠDetect Entities Request () ĊĠĠĠ Ġ. with Text ( text ) ĊĠĠĠ Ġ. with Language Code ( language Code ) Ċ Ċ val Ġresult Ġ= Ġclient . detect Entities ( request ) Ċ Ċ val Ġentities Ġ= Ġresult . entities Ċ