Is it possible to use a trained model in a Chrome extension?

Undergraduate CS student, working on final year project.
I have no experience developing Chrome extensions, however I would like to develop a Sentiment Analysis extension for Tweets.

From my research this has been done before, although it’s gone now? (ViralHeat extension)

Is this a good project idea for someone with no extension building background?

My main question is, if I build my sentiment analysis model that can look at new data and classify whether something is for example positive or not, if I train this sentiment analysis model in for example, R or Python – is it possible for me to then use this model in my extension for predicting tweet sentiment?

Apologies if it’s a stupid question, I’ve had no luck in finding the answer so far. Thank you in advance for anyone that replies!