notadictionary.com
友達が少ないので一晩中友達の定義考えたんだけど…
→ “I've been thinking about the definition of a friend all night because I don't have many friends... but...”
友達 tomodachi = friend (noun)
が ga = subject marker particle (indicates the subject is 'friends')
少ない sukunai = few / scarce (adjective, plain form negative)
の no = explanatory/concessive particle (explains the reason for the following action)
で de = particle indicating cause/reason or state (conjunctional form of de)
一晩中 ichiban-chū¹ = all night long (adverbial phrase)
一 ichi = one
晩 ban = evening / night
中 chū¹ = during / middle
友達 tomodachi = friend (noun)
の no = possessive/genitive particle ('of' or 'the')
定義 teiigi = definition (noun)
定 tei = determine / fix
義 gi = righteousness / meaning
考え kangae = thought / think (na-verb stem)
た ta = past tense auxiliary verb (marks completed action)
ん n = colloquial contraction of 'node' (because / so) - adds emphasis and casual tone
だけど dakedo = but / however / though (conjunction used to leave a thought hanging)