chrisullyott/church-name-comparator

Compare two church names to see if they refer to the same congregation.

v0.0.3 2020-10-09 02:33 UTC

This package is auto-updated.

Last update: 2024-04-09 10:22:38 UTC


README

Compare two church names to see if they refer to the same congregation.

Instantiate

$comparator = new ChrisUllyott\ChurchNameComparator();

Compare

$string1 = "First Baptist Church of South Lake";
$string2 = "fbc south lake";

$comparator->setStrings($string1, $string2);
$result = $comparator->isMatch();  
// bool(true)
$string1 = "St. Bartholomew's Church";
$string2 = "St Bart's";

$comparator->setStrings($string1, $string2);
$result = $comparator->isMatch();  
// bool(true)
$string1 = "Grace Episcopal Church";
$string2 = "Grace SBC";

$comparator->setStrings($string1, $string2);
$result = $comparator->isMatch();  
// bool(false)