Text this: Estimating 𝐿-Functionals for Heavy-Tailed Distributions and Application