Install libpinyin13 by entering the following commands in the terminal:
sudo apt update sudo apt install libpinyin13
library to deal with PinYin
libpinyin is a set of core algorithms designed for intelligent sentence-based Chinese PinYin input methods. . This package provides the library files.