Soenneker.Utils.String.LongestCommonSequence 4.0.1019

Prefix Reserved
dotnet add package Soenneker.Utils.String.LongestCommonSequence --version 4.0.1019
                    
NuGet\Install-Package Soenneker.Utils.String.LongestCommonSequence -Version 4.0.1019
                    
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="Soenneker.Utils.String.LongestCommonSequence" Version="4.0.1019" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.String.LongestCommonSequence" Version="4.0.1019" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.String.LongestCommonSequence" />
                    
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 Soenneker.Utils.String.LongestCommonSequence --version 4.0.1019
                    
#r "nuget: Soenneker.Utils.String.LongestCommonSequence, 4.0.1019"
                    
#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 Soenneker.Utils.String.LongestCommonSequence@4.0.1019
                    
#: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=Soenneker.Utils.String.LongestCommonSequence&version=4.0.1019
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.String.LongestCommonSequence&version=4.0.1019
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.String.LongestCommonSequence

A utility library for comparing strings via the Longest Common Sequence algorithm

Installation

dotnet add package Soenneker.Utils.String.LongestCommonSequence

Why?

Clarity in Similarity:

LCS gives a straightforward measure of similarity. The longer the common subsequence, the more similar the sequences.

Length-Flexible:

No bias for longer or shorter sequences. Focuses on shared elements, not sequence length.

Meaningful Over Quantity:

Emphasizes the meaning of elements, not just their frequency. Great for identifying shared meaningful content.

Efficient for Big Data:

Handles large datasets and extensive sequences efficiently. Practical for tasks involving substantial amounts of data.

Usage

var text1 = "This is a test";
var text2 = "This is another test";

double result = LcsStringUtil.CalculateSimilarityPercentage(text1, text2); // 70
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
4.0.1019 41 7/16/2026
4.0.1018 81 7/14/2026
4.0.1017 137 6/18/2026
4.0.1016 151 6/9/2026
4.0.1014 122 5/12/2026
4.0.1013 116 4/23/2026
4.0.1012 116 4/21/2026
4.0.1011 120 4/14/2026
4.0.1010 130 3/12/2026
4.0.1005 130 3/10/2026
4.0.1004 122 3/10/2026
4.0.1003 122 3/9/2026
4.0.1002 117 3/9/2026
4.0.1001 109 3/4/2026
4.0.1000 130 2/10/2026
4.0.999 131 1/13/2026
4.0.998 139 1/2/2026
4.0.997 472 12/9/2025
4.0.996 454 11/20/2025
4.0.995 328 11/11/2025
Loading failed

Update actions/setup-dotnet action to v6 (#1498)