Something like the FromFilename plugin but for folder names?

I have lots of instances where individual files are missing tags/useful file names but the folder they are in has useful info. Is there any way to get beets to pick this up?

ask on github discussions. forum dead