Text this: Planning-based approach for automating sequence diagram generation