Algorithms and Interoperability between Drama and Artificial Intelligence