<?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 how to find same sound words in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-same-sound-words/m-p/725359#M225293</link>
    <description>&lt;P&gt;data names ;&lt;BR /&gt;length company_name $ 50;&lt;BR /&gt;infile cards dlm='~' ;&lt;BR /&gt;input company_name $ country $;&lt;BR /&gt;cards ;&lt;BR /&gt;lenevo pvt ltd~usa&lt;BR /&gt;pvt lene~usa&lt;BR /&gt;harish industries~india&lt;BR /&gt;institute of harish technology~india&lt;BR /&gt;bata showroom ltd~usa&lt;BR /&gt;multi theature of bata's showroom~india&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;I have created one data set like above . I have some records like company names so how to identify the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;same sound spelling words for example : see first and second record 1--lenevo&amp;nbsp; 2---lene new variable='lene'.&lt;/P&gt;
&lt;P&gt;for your reference see final dataset output:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;company_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;country&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match_spelling&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;lenevo pvt ltd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usa&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lene&lt;BR /&gt;pvt lene&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usa&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lene&lt;BR /&gt;harish industries&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; india&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;harish&lt;BR /&gt;institute of harish technology&amp;nbsp; &amp;nbsp; &amp;nbsp; india&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; harish&lt;BR /&gt;bata showroom ltd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usa&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bata&lt;BR /&gt;multi theature of bata's showroom&amp;nbsp; india&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bata&lt;/P&gt;</description>
    <pubDate>Fri, 12 Mar 2021 08:37:49 GMT</pubDate>
    <dc:creator>thanikondharish</dc:creator>
    <dc:date>2021-03-12T08:37:49Z</dc:date>
    <item>
      <title>how to find same sound words</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-same-sound-words/m-p/725359#M225293</link>
      <description>&lt;P&gt;data names ;&lt;BR /&gt;length company_name $ 50;&lt;BR /&gt;infile cards dlm='~' ;&lt;BR /&gt;input company_name $ country $;&lt;BR /&gt;cards ;&lt;BR /&gt;lenevo pvt ltd~usa&lt;BR /&gt;pvt lene~usa&lt;BR /&gt;harish industries~india&lt;BR /&gt;institute of harish technology~india&lt;BR /&gt;bata showroom ltd~usa&lt;BR /&gt;multi theature of bata's showroom~india&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;I have created one data set like above . I have some records like company names so how to identify the&amp;nbsp;&lt;/P&gt;
&lt;P&gt;same sound spelling words for example : see first and second record 1--lenevo&amp;nbsp; 2---lene new variable='lene'.&lt;/P&gt;
&lt;P&gt;for your reference see final dataset output:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;company_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;country&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; match_spelling&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;lenevo pvt ltd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usa&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; lene&lt;BR /&gt;pvt lene&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usa&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lene&lt;BR /&gt;harish industries&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; india&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;harish&lt;BR /&gt;institute of harish technology&amp;nbsp; &amp;nbsp; &amp;nbsp; india&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; harish&lt;BR /&gt;bata showroom ltd&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; usa&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bata&lt;BR /&gt;multi theature of bata's showroom&amp;nbsp; india&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bata&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 08:37:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-same-sound-words/m-p/725359#M225293</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2021-03-12T08:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to find same sound words</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-find-same-sound-words/m-p/725421#M225327</link>
      <description>&lt;P&gt;You can look at the documentation for the SOUNDEX function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That creates an "encoded" version of the string that can be compared to an encoded version of another string to see if they are the same&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data example;
   string = 'banana';
   str2   = 'Bannnannna';
   a=soundex(string);
   b=soundex(str2);
   put  a= b=;
run;&lt;/PRE&gt;
&lt;P&gt;Read the documentation for a bit of how the algorithm works.&lt;/P&gt;
&lt;P&gt;Cross language sounds are likely not going to be consistent as only one language's "sounds" have rules for encoding.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since your specific example includes things that do not sound alike because the number of syllables changes: lene lenevo it may be that you want more of a "closeness of similar spelling" which would be functions COMPGED, COMPLEV or SPEDIS that compare the spelling and score the difference. Smaller scores being closer in similar spelling.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data example;
   word1 = 'lene';
   word2 = 'lenevo';
   a = compged(word1,word2);
   b = complev(word1,word2);
   c = spedis (word1,word2);
   put a= b= c=;
run;&lt;/PRE&gt;
&lt;P&gt;You would provide additional rules for "how close is close enough".&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 13:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-find-same-sound-words/m-p/725421#M225327</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-03-11T13:08:56Z</dc:date>
    </item>
  </channel>
</rss>

