Screenwriters who struggle with dialogue: always have a notes app ready (or a pocket notebook) to write down lines you hear in real life.
Your friend made a good one-liner joke? Write it down.
Your barista accidentally spoke in rhyme? Write it down.
A poetic sentence on your favourite podcast? Write. It. Down.
Over time, you develop an ear for it. You’ll start recognising strong lines instantly, and cutting the weak ones just as fast.