Complex sentence: The Sun is a G-type main-sequence star (G2V) based on its spectral class, and is informally referred to as a yellow dwarf.
Split into simpler sentences: The Sun is a G-type main-sequence star (G2V) based on its spectral class. As such, it is informally referred to as a yellow dwarf.