generate_emoji_keywords.py

View code on Github

Centralized keyword-emoji generation file to generated emoji for a specified Language.

scribe_data.unicode.generate_emoji_keywords.generate_emoji(language: str, output_dir: Path = PosixPath('.')) None[source]

Generate emoji keywords for a specified language.

This function first checks and installs the PyICU package, which is necessary for the script to run. If the installation is successful, it proceeds with generating emoji keywords based on the specified language. The results are then exported to the provided output directory.

Parameters:
languagestr

The ISO code of the language for which to generate emoji keywords.

output_dirstr, optional

The directory where the generated data will be saved. If not specified, the data will be saved in a default directory.

Returns:
None

The function does not return any value but outputs data to the specified directory.