Text this: Theoretical and methodological foundations for studying the problems of developing social resources of territorial communities