The word macro is actually quite nice. Thanks for posting the link.
However, what I am missing is some relation to the chapters and sections of the book. Is there some way to associate the location with the chapter or section title? Can you extract the chapter/section locations and titles from the mobi or prc file? If yes it should be quite straightforward to implement something like that.