app/Services/GedcomService.php
public function canonicalTag(string $tag): string
    {
        $tag = strtoupper($tag);

        $tag = self::TAG_NAMES[$tag] ?? self::TAG_SYNONYMS[$tag] ?? $tag;

        return $tag;
    }
public function canonicalTag(string $tag): string
    {
        $tag = strtoupper($tag);

        $tag = self::TAG_NAMES[$tag] ?? self::TAG_SYNONYMS[$tag] ?? $tag;

        return $tag;
    }
public function canonicalTag ( string $ tag ) : string { $ tag = strtoupper ( $ tag ) ; $ tag = self :: TAG_NAMES [ $ tag ] ?? self :: TAG_SYNONYMS [ $ tag ] ?? $ tag ; return $ tag ; }
Convert a GEDCOM tag to a canonical form.

@param string $tag

@return string
Convert a GEDCOM tag to a canonical form .