Generate text that is semantically similar to this text: named is preferred in your example , since you are formally giving a name to your method .
pardon the brevity of this answer , but i would say " named " is preferred within the context of your example .