JasonKessler / scattertext

Beautiful visualizations of how language differs among document types.
Apache License 2.0
2.23k stars 287 forks source link

Wildcard Feature Request #72

Open MastafaF opened 3 years ago

MastafaF commented 3 years ago

Hi,

It would be great to have some additional capability when building our topics/keywords pairs. For example, from the section 'Visualizing Topic Models', it seems like a the moment that if I build the following:

topic_model = {
  'money': ['money','bank','banks','finances','financial','loan','dollars','income']
}

Then the keyword "dollar" will be excluded. Do you think we could come up with a way to have some wildcard capability? For example, if the user writes 'dollar*' in the list of keywords associated to the topic 'money' then it should match words such as 'dollar', 'dollars', 'dollared' , etc.