A quick look at what was used under the perl version looks like a flat file dictionary and a small perl function in Search/Dict.pm (only about 55 lines or so). The function is simple and doesn't use any complex perl rtl functions so should be able to port pretty easily I'd think.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.