As discussed in #145 , this causes trouble to the line range computation when StringChunker is being used as a fallback chunker for the TreeSitterChunker. A \n based text-counting method (and/or a start_pos when the chunker is initialised) should be implemented so that it produces correctly computed start and end position.