Wookashi.ExtraText 2.1.0

dotnet add package Wookashi.ExtraText --version 2.1.0
                    
NuGet\Install-Package Wookashi.ExtraText -Version 2.1.0
                    
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="Wookashi.ExtraText" Version="2.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Wookashi.ExtraText" Version="2.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Wookashi.ExtraText" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Wookashi.ExtraText --version 2.1.0
                    
#r "nuget: Wookashi.ExtraText, 2.1.0"
                    
#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.
#:package Wookashi.ExtraText@2.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Wookashi.ExtraText&version=2.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Wookashi.ExtraText&version=2.1.0
                    
Install as a Cake Tool

Wookashi.ExtraText

NuGet License: MIT .NET Standard

A lightweight, cross-platform .NET library for removing diacritical marks (accents) from text in a language-specific manner. Perfect for search functionality, sorting, URL slugs, or data standardization.

Features

  • Supports 25 languages with 300+ character mappings
  • Simple extension methods on string
  • Cross-platform (.NET Framework 4.6.1+, .NET Core 2.0+, .NET 5+)
  • High performance using StringBuilder
  • No external dependencies

Installation

Package Manager

Install-Package Wookashi.ExtraText

.NET CLI

dotnet add package Wookashi.ExtraText

PackageReference

<PackageReference Include="Wookashi.ExtraText" Version="2.0.0" />

Usage

Add the namespace:

using Wookashi.ExtraText;

Replace All Diacritical Marks

Replaces diacritical marks from all supported languages:

"żółć".ReplaceDiacriticalMarks();     // Returns "zolc"
"café".ReplaceDiacriticalMarks();     // Returns "cafe"
"Müller".ReplaceDiacriticalMarks();   // Returns "Mueller"

Replace Language-Specific Marks

Replaces only marks from the specified language:

using Wookashi.ExtraText.Normalize.Enums;

"über".ReplaceDiacriticalMarks(Language.German);    // Returns "ueber"
"żółć".ReplaceDiacriticalMarks(Language.Polish);    // Returns "zolc"
"señor".ReplaceDiacriticalMarks(Language.Spanish);  // Returns "senor"

Complete Example

using System;
using Wookashi.ExtraText;
using Wookashi.ExtraText.Normalize.Enums;

class Program
{
    static void Main()
    {
        var polishText = "Zażółć gęślą jaźń";
        var germanText = "Größe über alles";

        // Replace all diacritics
        Console.WriteLine(polishText.ReplaceDiacriticalMarks());
        // Output: "Zazolc gesla jazn"

        // Replace only German-specific diacritics
        Console.WriteLine(germanText.ReplaceDiacriticalMarks(Language.German));
        // Output: "Groesse ueber alles"
    }
}

Supported Languages

Language Example Characters Replacement
Polish ą, ć, ę, ł, ń, ó, ś, ź, ż a, c, e, l, n, o, s, z, z
German ä, ö, ü, ß ae, oe, ue, ss
French à, â, é, è, ê, ë, ç, î, ï, ô, ù, û, œ, æ a, a, e, e, e, e, c, i, i, o, u, u, oe, ae
Spanish á, é, í, ó, ú, ü, ñ a, e, i, o, u, u, n
Swedish å, ä, ö a, a, o
Slovak á, ä, č, ď, é, í, ĺ, ľ, ň, ó, ô, ŕ, š, ť, ú, ý, ž a, a, c, d, e, i, l, l, n, o, o, r, s, t, u, y, z
Czech á, č, ď, é, ě, í, ň, ó, ř, š, ť, ú, ů, ý, ž a, c, d, e, e, i, n, o, r, s, t, u, u, y, z
Hungarian á, é, í, ó, ö, ő, ú, ü, ű a, e, i, o, o, o, u, u, u
Serbian č, ć, đ, š, ž c, c, d, s, z
Portuguese á, à, â, ã, é, ê, í, ó, ô, õ, ú, ç a, a, a, a, e, e, i, o, o, o, u, c
Italian à, è, é, ì, ò, ù a, e, e, i, o, u
Romanian ă, â, î, ș, ț a, a, i, s, t
Turkish ç, ğ, ı, İ, ö, ş, ü c, g, i, I, o, s, u
Danish æ, ø, å ae, o, a
Norwegian æ, ø, å ae, o, a
Finnish ä, ö a, o
Icelandic á, é, í, ó, ú, ý, ð, þ, æ, ö a, e, i, o, u, y, d, th, ae, o
Croatian č, ć, đ, š, ž c, c, d, s, z
Slovenian č, š, ž c, s, z
Lithuanian ą, č, ę, ė, į, š, ų, ū, ž a, c, e, e, i, s, u, u, z
Latvian ā, č, ē, ģ, ī, ķ, ļ, ņ, š, ū, ž a, c, e, g, i, k, l, n, s, u, z
Estonian ä, ö, ü, õ a, o, u, o
Catalan à, é, è, í, ï, ó, ò, ú, ü, ç a, e, e, i, i, o, o, u, u, c
Dutch ë, ï, é, ü e, i, e, u
Welsh â, ê, î, ô, û, ŵ, ŷ a, e, i, o, u, w, y

All languages include both lowercase and uppercase variants.

Use Cases

  • Search engines - Normalize user input and indexed content for accent-insensitive search
  • URL slugs - Generate clean URLs from titles containing special characters
  • Data deduplication - Compare records that may have inconsistent diacritic usage
  • File naming - Create safe filenames from user-provided text
  • Sorting - Normalize text for consistent alphabetical ordering

Contributing

Contributions are welcome! If you have suggestions, bug reports, or want to add support for more languages:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

Or contact me at l.hryciuk@outlook.com

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.1.0 91 1/30/2026
2.0.0 282 8/24/2025
1.2.0 272 8/24/2025
1.1.0 213 2/2/2025
1.1.0-rc2 184 2/2/2025
1.1.0-rc1 184 2/2/2025
1.0.3 639 7/13/2022
1.0.2 716 11/16/2019
1.0.1 689 10/31/2019
1.0.0 844 10/31/2019
0.9.1 680 10/28/2019
0.9.0 699 10/28/2019
0.1.0 873 10/31/2019

Support new 16 languages