<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Carlo Francesco</title>
    <description>The latest articles on DEV Community by Carlo Francesco (@carlop95).</description>
    <link>https://dev.to/carlop95</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F761942%2Fc3e28778-a660-4c4c-95e5-a8f2c3532ded.jpeg</url>
      <title>DEV Community: Carlo Francesco</title>
      <link>https://dev.to/carlop95</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/carlop95"/>
    <language>en</language>
    <item>
      <title>ItalianSyllabary is out!</title>
      <dc:creator>Carlo Francesco</dc:creator>
      <pubDate>Thu, 20 Oct 2022 17:24:15 +0000</pubDate>
      <link>https://dev.to/carlop95/italiansyllabary-is-out-12ea</link>
      <guid>https://dev.to/carlop95/italiansyllabary-is-out-12ea</guid>
      <description>&lt;p&gt;Hi Guys! &lt;/p&gt;

&lt;p&gt;My name is Carlo. I'm a Full Stack Web Developer that works in Sicily!&lt;/p&gt;

&lt;p&gt;I'm excited about being part of Dev.to: I've found interesting content here, lot of ideas came to my mind thanks to you.&lt;/p&gt;

&lt;p&gt;For my first post, I want to share my first little contribution to the open-source Community.&lt;/p&gt;

&lt;h3&gt;
  
  
  TL; DR;
&lt;/h3&gt;

&lt;p&gt;I wrote a library that can help with the Syllabification in Italian since I did not find anything that helps with that online.&lt;/p&gt;

&lt;p&gt;Here's a quick get started on how to use that in your C# code.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight csharp"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Manual version with known issues&lt;/span&gt;
&lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;syllabary&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ItalianSyllabary&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ItalianSyllabary&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;syllables4Casa&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;syllabary&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetSyllables&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"casa"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// { "ca", "sa" }&lt;/span&gt;
&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;syllables4Manuale&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;syllabary&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetSyllables&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"manuale"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// { "ma", "nua", "le" }&lt;/span&gt;

&lt;span class="c1"&gt;// Online version, will fallback to manual if word is not found or is not italian&lt;/span&gt;
&lt;span class="kt"&gt;var&lt;/span&gt; &lt;span class="n"&gt;syllabaryOnline&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="n"&gt;ItalianSyllabary&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;ItalianSyllabary&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;preferOnline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kt"&gt;string&lt;/span&gt;&lt;span class="p"&gt;[]&lt;/span&gt; &lt;span class="n"&gt;syllablesOnline&lt;/span&gt; &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="n"&gt;syllabaryOnline&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;GetSyllables&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s"&gt;"manuale"&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="n"&gt;Result&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="c1"&gt;// { "ma", "nua", "le" }&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h4&gt;
  
  
  Limitations
&lt;/h4&gt;

&lt;p&gt;While coding I encountered one of the problems that all of the tools that I tried online have that is: in Italian, the same name "Mario" and "Maria" has different Syllabifications.&lt;/p&gt;

&lt;p&gt;The former is "Ma-rio" while the latter is "Ma-ri-a". &lt;/p&gt;

&lt;p&gt;That's because of the accent "Màrio" and "Marìa"; you don't say Maria in a single breath.&lt;/p&gt;

&lt;h5&gt;
  
  
  Solution, Extension and contribute!
&lt;/h5&gt;

&lt;p&gt;I built an enricher that gets word from a file (that is embedded into the source code so you don't have to navigate in the file system where the library is running, don't worry) and understand if it has accents to get the correct Syllabification.&lt;/p&gt;

&lt;p&gt;And that's where you can contribute! If you want to help me, put words in the enricher, comment to tell me how you think this library can be useful, and thanks because you have read my first post! &lt;/p&gt;

&lt;h3&gt;
  
  
  References
&lt;/h3&gt;

&lt;p&gt;You can find the library on Nuget &lt;a href="https://www.nuget.org/packages/ItalianSyllabary"&gt;here&lt;/a&gt;; links on Github &lt;a href="https://github.com/CarloP95/ItalianSyllabary"&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;I hope to see you around!&lt;/p&gt;




&lt;p&gt;Cover Photo by &lt;a href="https://unsplash.com/@brett_jordan?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Brett Jordan&lt;/a&gt; on &lt;a href="https://unsplash.com/s/photos/words?utm_source=unsplash&amp;amp;utm_medium=referral&amp;amp;utm_content=creditCopyText"&gt;Unsplash&lt;/a&gt;&lt;/p&gt;

</description>
      <category>csharp</category>
      <category>firstpost</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
