Replace taxonomy term names with icons

Hi,

I have requirement where, all taxonomy terms of specific vocabulary replace by icons using css.

I want this to be done in custom module , and not from theme,

Thanks in advance.

Drupal version: 


Source: https://www.drupal.org/taxonomy/term/4/feed