SELECT `justfunctions.eu.word_distance`("python", "pithon")
/*--Output--
1
*/
CREATE OR REPLACE FUNCTION `your_project_id.your_dataset_id.word_distance`(`string_1` STRING, `string_2` STRING) RETURNS INT64
LANGUAGE js AS r'''return fuzzball.distance(string_1,string_2);''' OPTIONS ( description = '''Calculates Levenshtein distance between <string_1> and <string_2>.''' , library = [ "gs://justfunctions/bigquery-functions/fuzzball.umd.min.js" ] )
JavaScript User Defined Function (JavaScript UDF)
See something wrong? Contact us or report an issue on Github.