An algorithm for connected word recognition | Synapse