Python script for detecting basic chiastic structures in text files