when googling "is pineapple a melon"
That source is wrong tho
Melons are members of the Cucurbitaceae family.
Pineapples are not members of that family
Also, as I stated earlier, a melon is
a berry; as per TableSalt's source, a pineapple is a coalesced collection of berries