How to add functionality to Forms via a plugin?

I want to add some functionality to post forms in Vanilla 2, eg., a word count on KeyUp, and a link which takes the text, shrinks URLs and replaces it. The only php code I have for this is from another package, where these functions are already coded in a core file. Is there a way of adding to Form (textarea) functionality without modifying the core?
0