<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Language detect function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555618#M154634</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data list;
input name $20.;
flag=prxmatch('/[^a-z]/i',compress(name,,'ka'))&amp;gt;0;
datalines;
Côté
Boucher
Fournier
Cats
how to register
morning
Thibeault
Martin
Vaudron
Girard
Hello
;
run;

 

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 02 May 2019 14:00:55 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-05-02T14:00:55Z</dc:date>
    <item>
      <title>Language detect function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555596#M154630</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a dataset&amp;nbsp;similar to the following&amp;nbsp; that contains a text(a single word or phrase)&amp;nbsp;variable. The&amp;nbsp;strings &amp;nbsp;are either in English or&amp;nbsp;French.&lt;/P&gt;&lt;P&gt;Is there&amp;nbsp;a way&amp;nbsp;to flag the English words? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; list;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; name &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$20.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Côté&lt;/P&gt;&lt;P&gt;Boucher&lt;/P&gt;&lt;P&gt;Fournier&lt;/P&gt;&lt;P&gt;Cats&lt;/P&gt;&lt;P&gt;how to register&lt;/P&gt;&lt;P&gt;morning&lt;/P&gt;&lt;P&gt;Thibeault&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;Vaudron&lt;/P&gt;&lt;P&gt;Girard&lt;/P&gt;&lt;P&gt;Hello;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 13:08:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555596#M154630</guid>
      <dc:creator>parmis</dc:creator>
      <dc:date>2019-05-02T13:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Language detect function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555607#M154631</link>
      <description>&lt;P&gt;May not be possible with just words out of context, but you could try incorporating Python. Take a look at:&amp;nbsp;&lt;A href="https://www.probytes.net/blog/python-language-detection/" target="_blank"&gt;https://www.probytes.net/blog/python-language-detection/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 13:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555607#M154631</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2019-05-02T13:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Language detect function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555618#M154634</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data list;
input name $20.;
flag=prxmatch('/[^a-z]/i',compress(name,,'ka'))&amp;gt;0;
datalines;
Côté
Boucher
Fournier
Cats
how to register
morning
Thibeault
Martin
Vaudron
Girard
Hello
;
run;

 

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 May 2019 14:00:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555618#M154634</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-05-02T14:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Language detect function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555668#M154651</link>
      <description>&lt;P&gt;My French is pretty rusty but I do remember that a moderate number of nouns are the same in both French and English.&lt;/P&gt;
&lt;P&gt;So without the articles the / a or le/ la /les/ un / une or similar clue those are going to be very problematic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some adjectives, grand, for example are going to be worse.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would hesitate to assign any name to a specific language as the French and English have been interacting for so long names go both ways (and spelling gets butchered)&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 17:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/555668#M154651</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-05-02T17:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Language detect function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/754697#M238056</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183598"&gt;@parmis&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I know this is an answer that comes after 2 years :), but felt that you may derive some benefit nevertheless, knowledge at the least.&amp;nbsp; &amp;nbsp;In Jan of this year,&amp;nbsp; SAS released a language identification action as part of its Viya platform.&amp;nbsp; Here are details on how it works :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/sasstudiocdc/v_009/pgmsascdc/casanpg/cas-textmanagement-identifylanguage.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/sasstudiocdc/v_009/pgmsascdc/casanpg/cas-textmanagement-identifylanguage.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Sundaresh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 01:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Language-detect-function/m-p/754697#M238056</guid>
      <dc:creator>Sundaresh1</dc:creator>
      <dc:date>2021-07-17T01:00:32Z</dc:date>
    </item>
  </channel>
</rss>

