Is Chile a vegetable?
Think of 'Vegetable' as more of a culinary terminology, not scientific.
From a scientific standpoint, 'Fruit' is a reproductive part of the plant. From a culinary perspective, sweetness is inferred.
Many fruits have culinary use a vegetables - including chili peppers, bell pepper, eggplant, tomatoes, and squash.
Chile is technically a fruit. Chile is also the proper spelling, as chili is what we all know as the recipe for spicy stew, which contains - chiles. The alternative spelling of chili has become commonplace in the U.S., but the original correct spelling is chile.