The easiest way to install is to copy the entire folder from a working application to the new machine. This software is now about 16 years old, so it's not easy to find. You could try posting in some MAC forums or advertising on eBay for a copy. Short of finding someone who has it, I think you're out of luck.
You might try using Open Office if you can't get Word 5.1a.