If you'd like to get an idea of how to integrate it into BuddyPress, please check out our latest WordPress plugin. It should show how we hook into the WP actions and handle form submissions.
Given that BP is different, you might have to change the arguments that are passed into the function and how they are returned.
The nitty gritty is that you'll probably have two hooks, one for the form, and one for the post, as we do in our plugin. For the first, you just need to instantiate the AYAH object and then use getPublisherHTML, for the second you'd again instantiate and then call scoreResult.
Let me know if this is helpful or if there is something more we can provide.