apoc.text.phoneticDelta

Procedure APOC Core

apoc.text.phoneticDelta(text1, text2) yield phonetic1, phonetic2, delta - Compute the US_ENGLISH soundex character difference between two given strings

Signature

apoc.text.phoneticDelta(text1 :: STRING?, text2 :: STRING?) :: (phonetic1 :: STRING?, phonetic2 :: STRING?, delta :: INTEGER?)

Input parameters

Name Type Default

text1

STRING?

null

text2

STRING?

null

Output parameters

Name Type

phonetic1

STRING?

phonetic2

STRING?

delta

INTEGER?

Usage Examples

CALL apoc.text.phoneticDelta("Neo4j", "Neo4j");
Table 1. Results
phonetic1 phonetic2 delta

"N200"

"N200"

4

CALL apoc.text.phoneticDelta("Neo4j Graph Data Science Library", "Neo4j Graph Database");
Table 2. Results
phonetic1 phonetic2 delta

"N261"

"N261"

4

CALL apoc.text.phoneticDelta("GRANDstack", "GraphQL");
Table 3. Results
phonetic1 phonetic2 delta

"G653"

"G612"

2