@
costis - if you have a book in an editable format (EPUB, AZW3) the Reports option in calibre's Book Editor can provide a list of unique words, and counts, which can be saved to a file. You could use a diff tool to compare word lists from different books.
The one thing it lacks is a case insensitive option - hint, hint Kovid
BR