Analysis

Examine other naming possibilities

The selected names appear intuitive, simple, and understandable, but they have alternatives. The following analysis using the Html tag <span> as an example should clarify the choice.

<span>

Alternatives

The possible words describe the span.

body

content

name

phrase

sentence

text

word

Comparison of possibilities

Wrap body.

Wrap content.

Wrap name.

Wrap phrase.

Wrap sentence.

Wrap text.

Wrap word.

Word

text

Reasons

I selected to wrap the text because it's not only the word, phrase, or sentence, but sentences and we can find a feature called 'word wrap'. On the other hand, wrap text may suggest wrapping words in the text. The text after the wrapping is also the content of the Wrap. There is a wrap that can be opened or closed.

"Phrases can consist of a single word or a complete sentence." - Wikipedia

<span>

Alternatives

The possible words describe the <.

opening

openingChar

openingChars

openingCharacters

startingChars

prefix

Comparison of possibilities

beginning of the Wrap.

opening of the Wrap.

starting of the Wrap.

beginning chars of the Wrap.

opening chars of the Wrap.

starting chars of the Wrap.

Text opening.

Text opening chars.

Wrap opening.

Wrap opening char.

Wrap opening chars.

Wrap opening characters.

Wrap prefix.

Wrap starting characters.

Word

opening

Reasons

A decision is made, the word 'opening' is selected to describe the char '<' before the 'span' because it's a general word and seems more intuitive than the 'starting' or even 'prefix' word. For example, let's read more about the prefix.

Prefix definitions

As noun

"a letter or group of letters added to the beginning of a word to make a new word"

Cambridge Dictionary

As noun

"an affix attached to the beginning of a word, base, or phrase and serving to produce a derivative word or an inflectional form"

Merriam-Webster

Prefix refers more to the word than the text that's why the choice 'opening' seems safe. Crucial is to have in mind, a different tag can consist of more than one char e.g. {{variable}}.

<span>

Alternatives

The possible words describe the >.

closing

closingChar

closingChars

closingCharacters

endingChar

endingChars

endingCharacters

suffix

Comparison of possibilities

Text closing.

Text closing chars.

Wrap closing.

Wrap closing char.

Wrap closing chars.

Wrap closing characters.

Wrap ending chars.

Wrap ending characters.

Wrap suffix.

Word

closing

Reasons

The choice is straightforward because the choice of the 'opening' word forces us to use the 'closing' word.

Legend

- Rejected - Confirmed

Last updated