Another way to say "an herb is for flavoring food" is "An herb is for taste sensation."