What's the best way to find every word commonly physically contiguous in real life to another word? By that, I mean every parts typically found on a ship or an ancient ship such as sail, mast, aft, rudder, etc? I can't find any good thesaurus that does this and I am surprised considering we have so many applications using machine learning.
This is where research comes in. (And Google, Duckduckgo, etc are your best friends!)
For example, the ship terms I'd say would be best defined by a dictionary of ships terms: https://en.wikipedia.org/wiki/Glossary_of_nautical_terms
As you can see the relationship between words can be many different things, so your best bet is to ask the question you have directly in a search engine.