Another way to say "an herb is for flavoring food" is "an herb is a flavoring for food"