def _get_name_letters(self, sex: int) -> str:
        """
        Rules:
            * take all consonants in their order
              * if >= 4, take the 1st, 3rd and 4th
              * if < 3 take the vowels also; vowels must go _after_ the consonants
                and must be taken in the order they appear (LUCA -> LCU)
              * if == 3 return all 3 consonants
            * if name is < 3 chars, pad it on the right with "X" (LI -> LIX)
        Args:
            sex: int
        Returns:
            str
        """

        if sex == 1:
            name = self.generator.first_name_male().upper()
        else:
            name = self.generator.first_name_female().upper()

        name = self._transliterate_name(name)

        if len(name) < 3:
            return self._pad_shorter(name)

        name_consonants = self._get_consonants(name)
        cons_len = len(name_consonants)
        if cons_len >= 4:
            name_part = "".join([name_consonants[0], name_consonants[1], name_consonants[3]])
        elif cons_len < 3:
            name_part = "".join(name_consonants + self._get_vowels(name))[:3]
        else:
            name_part = "".join(name_consonants)
        return name_part

        Rules:
            * take all consonants in their order
              * if >= 4, take the 1st, 3rd and 4th
              * if < 3 take the vowels also; vowels must go _after_ the consonants
                and must be taken in the order they appear (LUCA -> LCU)
              * if == 3 return all 3 consonants
            * if name is < 3 chars, pad it on the right with "X" (LI -> LIX)
        Args:
            sex: int
        Returns:
            str
        
faker/providers/ssn/it_IT/__init__.py