that worked for me...
but how to structure the addon and related info are not mentioned...
lets say, i am creating an addon that takes the whole text of the page or a custom text and perform some actions and return user with suggestions or similar actions. i cant find those documentations @stevepiercy