ItalianSyllabary 1.0.3

dotnet add package ItalianSyllabary --version 1.0.3                
NuGet\Install-Package ItalianSyllabary -Version 1.0.3                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ItalianSyllabary" Version="1.0.3" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ItalianSyllabary --version 1.0.3                
#r "nuget: ItalianSyllabary, 1.0.3"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ItalianSyllabary as a Cake Addin
#addin nuget:?package=ItalianSyllabary&version=1.0.3

// Install ItalianSyllabary as a Cake Tool
#tool nuget:?package=ItalianSyllabary&version=1.0.3                

ItalianSyllabary

A zero dependencies .NET library to get italian words splitted in syllables. There are some known limitations, but you can even try to overcome those with the online vocabulary that Wikitionary lends us.

Known issues

Syllables division in italian words relies on diphthongs, accents and so on. This repo follows the guide from the following link (https://accademiadellacrusca.it/it/consulenza/divisione-in-sillabe/302). However some words (e.g. Maria, Mario) if submitted without accents can't be splitted correctly in syllables.

For this reason you will find the Enricher that allows you to add words with accents to suggest to the library how to split correctly. You can find this .json file into the resources directory.

Quickstart

Installation

Add ItalianSyllabary in the latest version of your .NET 6.0 application from the voice "Manage NuGet packages... of the project or simply use the following command from your CLI

dotnet add package ItalianSyllabary --version 1.0.3

Usage

// Manual version with known issues
var syllabary = new ItalianSyllabary();
string[] syllables = syllabary.GetSyllables("casa"); // { "ca", "sa" }
// Online version, will fallback to manual if word is not found or is not italian
var syllabary = new ItalianSyllabary(preferOnline: true);
string[] syllables = syllabary.GetSyllables("manuale"); // { "ca", "sa" }

Contribute

You are free to submit pull requests. If you want, you can add words to the enrich.json file.

A contribute could be even to reach me and telling me why are you using this library.

License

Copyright © 2022 Carlo Francesco Pellegrino

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on ItalianSyllabary:

Package Downloads
SterenVocabulary

Library to turn italian sentences into a mock language

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.3 1,265 1/14/2022
1.0.2 439 1/14/2022
1.0.1 436 1/14/2022
1.0.0 453 1/10/2022