Great! Thank you for your help. Now I'm going to work to the second part of my project, that is a script that makes a text index. Something like this:
INDEX
be 2, 1
bright 1, 1
burning 1, 1
forest 1, 2
in 1, 2
is 2, 2
night 1, 2
not 2, 1
of 1, 2
or 2, 1
question 2, 2
that 2, 2
the 1, 2; 2, 2...