With this example program, you can find synonyms of Chinese words.

    1. import synonyms
    2. while True:
    3. word = input("Input a Chinese word:")
    4. nearby = synonyms.nearby(word)
    5. print(nearby)

    :::info Note: This example program is translated from the Chinese version. You can try to compile an English one by using English APIs. :::