The function's behavior is unpredictable and does not provide output for the majority of tested words, except for "River."