TXT novel segmentation program (attached: source code)