I'd say "to generate the URL" (rather than "guess")