The Peanut also called groundnut is  a legume crop grown mainly for its edible seeds.
It's interesting to think that a peanut is actually a legume- I always forget that. Have you ever had boiled peanuts? They are popular in the Southern us.
Peanut
The peanut, also known as the groundnut, goober (US), or monkey nut (UK), and taxonomically classified as "Arachis hypogaea," is a legume crop grown mainly for its edible seeds. It is widely grown in the tropics and subtropics, being important to both small and large commercial producers. It is classified as both a grain legume and, due to its high oil content, an oil crop. World annual production of shelled peanuts was 44 million tonnes in 2016, led by China
Macrotyloma geocarpum
Macrotyloma geocarpum is also known as the ground bean, geocarpa groundnut, Hausa groundnut, or Kersting's groundnut. In French, it is often called "la lentille de terre". "M. geocarpum" is an herbaceous annual plant and a crop of minor economic importance in sub-Saharan Africa, tolerant of drought, with a growth habit similar to that of the peanut.
"M. geocarpum" is a pulse belonging to the legume family. It is primarily produced in western Africa, specifically in Benin