Soundex – Determine the phonetic code of a word

Soundex – Determine the phonetic code of a word

' The Soundex code of an alphabetical string'' you can use Soundex code for phonetic searches' Beware: this isn't bullet-proof!'' UPDATE: this version corrects a bug in the original routine'         thanks to Edward Wittke for spotting the mistakeFunction Soundex(ByVal word As String) As String    Dim result As String    Dim i As Long, acode As Integer    Dim dcode As Integer, oldCode As Integer        ' soundex is case-insensitive    word = UCase$(word)    ' the first letter is copied in the result    Soundex = Left$(word, 1)    oldCode = Asc(Mid$("01230120022455012623010202", Asc(word) - 64))        For i = 2 To Len(word)        acode = Asc(Mid$(word, i, 1)) - 64        ' discard non-alphabetic chars        If acode >= 1 And acode <= 26 Then            ' convert to a digit            dcode = Asc(Mid$("01230120022455012623010202", acode, 1))            ' don't insert repeated digits            If dcode <> 48 And dcode <> oldCode Then                Soundex = Soundex & Chr$(dcode)                If Len(Soundex) = 4 Then Exit For            End If            oldCode = dcode        End If    NextEnd Function

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several

data fivetran pricing

Fivetran Pricing Explained

One of the biggest trends of the 21st century is the massive surge in analytics. Analytics is the process of utilizing data to drive future decision-making. With so much of

kubernetes logging

Kubernetes Logging: What You Need to Know

Kubernetes from Google is one of the most popular open-source and free container management solutions made to make managing and deploying applications easier. It has a solid architecture that makes