There are many questions/answers on Stack Exchange and elsewhere regarding underlining text in latex. After reading (a selection of) these, I tend to use \underline{...}. I have one (fairly major) complaint.
The vertical spacing changes dependent on
....Eg,
\underline{words}looks fine, while\underline{writings}looks (in my opinion) awful because the line is placed so far below the text, so as to be sufficiently below theg.
With a g, due to the fact that the bit below the line is the full width of the letter, one can get around this with \underline{writin}g\underline{s} (most unsatisfactory). However, something like that doesn't work for p or q.
How can I force the underline to be placed at the natural height below the word (such as in the case
\underline{text}for all words? (The line would then pass through parts of ag,porq.)

\underlineis kind of the roughest way to underline stuff, since it is nothing but a thin wrapper around a plain TeX math-mode macro. Did you look at the packagesulemandsoul? They both provide means to set the underline depth manually. The standard definition, however, is the opposite of what you want (the underline will be low also for a word without descenders), but that can be easily changed. – campa Feb 17 '20 at 13:04\underline{words}look also awful, no matther the depth of the line (in my opinion, of course, but not only ... have you seen many books or indexed journals with underlines?) – Fran Feb 17 '20 at 17:04\alarm{word},\structure{word},\colorbox{yellow}{word},\spot{word}(package spot), etc. – Fran Feb 17 '20 at 19:11myul(notmyulline) in the linked answer is the same – Sam OT Jun 20 '20 at 21:13