syllabicator/trie.py
def longestMatch(self, word: str) -> str:
        """Return the longest matching prefix in the trie for the given word.

        Parameters:
        word (str): the word to match.

        Returns:
        str:the longest match found. None if no match was found and "" not in Trie.
        """

        m = super().longestMatch(word)
        if m == '':
            return '' if self.isFinal() else None
        else:
            return m
Return the longest matching prefix in the trie for the given word.

        Parameters:
        word (str): the word to match.

        Returns:
        str:the longest match found. None if no match was found and "" not in Trie.
        
Return the longest matching prefix in the trie for the given word.
Parameters:
word (str): the word to match.

the longest match found. None if no match was found and "" not in Trie.
Return the longest matching prefix in the trie for the given word . Parameters : word ( str ) : the word to match . the longest match found . None if no match was found and " " not in Trie .
def longestMatch(self, word: str) -> str:
        m = super().longestMatch(word)
        if m == '':
            return '' if self.isFinal() else None
        else:
            return m
def longestMatch ( self , word : str ) -> str : m = super ( ) . longestMatch ( word ) if m == '' : return '' if self . isFinal ( ) else None else : return m
Return the longest matching prefix in the trie for the given word.
Return the longest matching prefix in the trie for the given word .
"""Return the longest matching prefix in the trie for the given word.

        Parameters:
        word (str): the word to match.

        Returns:
        str:the longest match found. None if no match was found and "" not in Trie.
        """
self
word
str