< Back

Get-LevenshteinDistance

Wed Jan 15, 2020 1:59 am

NAME Get-LevenshteinDistance



SYNOPSIS

Get the Levenshtein distance between two strings.





SYNTAX

Get-LevenshteinDistance [-ReferenceString] <String> [-DifferenceString] <String> [<CommonParameters>]





DESCRIPTION

The Levenshtein distance represents the number of changes required to change one string into another. This

algorithm can be used to test for typing errors.



This command makes use of the Fastenshtein library.



Credit for this algorithm goes to Dan Harltey. Converted to PowerShell from

https://github.com/DanHarltey/Fastensht ... nshtein.cs.





PARAMETERS

-ReferenceString <String>

The reference string.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DifferenceString <String>

The different string.



Required? true

Position? 2

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS