apoc.text.phoneticDelta

Details

Syntax

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

Description

Returns the US_ENGLISH soundex character difference between the two given STRING values.

Input arguments

Name

Type

Description

text1

STRING

The first string to be compared against the second.

text2

STRING

The second string to be compared against the first.

Return arguments

Name

Type

Description

phonetic1

STRING

The phonetic representation of the first string.

phonetic2

STRING

The phonetic representation of the second string.

delta

INTEGER

The soundex character difference between the two given strings.

Usage Examples

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

"N200"

"N200"

4

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

"N261"

"N261"

4

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

"G653"

"G612"

2