The Royal Navy has a vast slang dictionary which one can buy. The book is "Jack Speak" written by a former sailor runs to over 500 pages spaced out a bit with a few appropriate cartoons.
I saw a copy on the shipping shelves in a book shop some years ago and bought a copy. Interesting to see...