Communary.PASM.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Add-Type -TypeDefinition @"
   public enum PasmAlgorithm
   {
      OverlapCoefficient,
      LongestCommonSubstring,
      LongestCommonSubsequence,
      Soundex,
      HammingDistance,
      RatcliffObershelpSimilarity,
      JaccardIndex,
      JaccardDistance,
      SorensenDiceCoefficient,
      SorensenDiceDistance,
      JaroDistance,
      JaroWinklerDistance,
      LevenshteinDistance
   }
"@


Get-ChildItem -Path (Join-Path -Path $PSScriptRoot -ChildPath 'Functions') | ForEach-Object {
    Get-ChildItem -Path $_.FullName | ForEach-Object {
        . $_.FullName
    }
}

Set-Alias -Name 'sfs' -Value Select-FuzzyString
Set-Alias -Name 'sss' -Value Select-SoundexString
Set-Alias -Name 'sas' -Value Select-ApproximateString