Despite its sweet taste and fruity name, pineapple does not grow on a tree. Rather the pineapple is actually the result of dozens of flowers that have joined together to form a single fruit. Since it sits at the center of many swordlike leaves that grow from the ground, the blessing for pineapple is “Ha’adamah:”

בָּרוּךְ אַתָּה יְ‑יָ אֱ‑לֹהֵינוּ מֶלֶךְ הָעוֹלָם בּוֹרֵא פְּרִי הָאֲדָמָה

Bah-rookh ah-tah ah-doh-noy, eh-loh-hay-noo meh-lehkh hah-oh-lahm boh-ray peh-ree hah-ah-dah-mah

Blessed are You, L‑rd our G‑d, King of the universe, Who creates the fruit of the earth.

The after-blessing for pineapple is Borei Nefashot.