def convert_consonantal_i(self, word) -> str:
        """Convert i to j when at the start of a word."""
        match = list(self.consonantal_i_matcher.finditer(word))
        if match:
            if word[0].isupper():
                return "J" + word[1:]
            return "j" + word[1:]
        return word
def convert_consonantal_i ( self , word ) -> str : match = list ( self . consonantal_i_matcher . finditer ( word ) ) if match : if word [ 0 ] . isupper ( ) : return "J" + word [ 1 : ] return "j" + word [ 1 : ] return word
Convert i to j when at the start of a word.