Somnolence (alternatively "sleepiness" or "drowsiness") is a state of strong desire for sleep, or sleeping for unusually long periods (compare hypersomnia). It has distinct meanings and causes. It can refer to the usual state preceding falling asleep, the condition of being in a drowsy state due to circadian rhythm disorders, or a symptom of other health problems. It can be accompanied by lethargy, weakness, and lack of mental agility.
Somnolence is often viewed as a symptom rather than a disorder by itself. However, the concept of somnolence recurring at certain times for certain reasons constitutes various disorders, such as excessive daytime sleepiness, shift work sleep disorder, and others; and there are medical codes for somnolence as viewed as a disorder.
Sleepiness can be dangerous when performing tasks that require constant concentration, such as driving a vehicle. When a person is sufficiently fatigued, microsleeps may be experienced. In individuals deprived of sleep, somnolence may spontaneously dissipate for short periods of time; this phenomenon is the second wind, and results from the normal cycling of the circadian rhythm interfering with the processes the body carries out to prepare itself to rest.
The word "somnolence" is derived from the Latin "somnus" meaning "sleep".
Circadian rhythm ("biological clock") disorders are a common cause of drowsiness as are a number of other conditions such as sleep apnea, insomnia, and narcolepsy. The body clock disorders are classified as extrinsic (externally caused) or intrinsic. The former type is, for example, shift work sleep disorder, which affects people who work nights or rotating shifts. The intrinsic types include:
Advanced sleep phase disorder (ASPD) – A condition in which patients feel very sleepy and go to bed early in the evening and wake up very early in the morning
Delayed sleep phase disorder (DSPD) – Faulty timing of sleep, peak period of alertness, the core body temperature rhythm, hormonal and other daily cycles such that they occur a number of hours late compared to the norm, often misdiagnosed as insomnia
Non-24-hour sleep–wake disorder – A faulty body clock and sleep-wake cycle that usually is longer than (rarely shorter than) the normal 24-hour period causing complaints of insomnia and excessive sleepiness
Irregular sleep–wake rhythm – Numerous naps throughout the 24-hour period, no main nighttime sleep episode and irregularity from day to day
Sleepiness can also be a response to infection. Such somnolence is one of several sickness behaviors or reactions to infection that some theorize evolved to promote recovery by conserving energy while the body fights the infection using fever and other means. Other causes include:
Quantifying sleepiness requires a careful assessment. The diagnosis depends on two factors, namely chronicity and reversibility. Chronicity signifies that the patient, unlike healthy people, experiences persistent sleepiness, which does not pass. Reversibility stands for the fact that even if the individual goes to sleep, the sleepiness may not be completely gone after waking up. The problem with the assessment is that patients may only report the consequences of sleepiness: loss of energy, fatigue, weariness, difficulty remembering or concentrating, etc. It is crucial to aim for objective measures to quantify the sleepiness. A good measurement tool is the Multiple Sleep Latency Test (MSLT). It assesses the sleep onset latency during the course of one day - often from 8:00 to 16:00. An average sleep onset latency of less than 5 minutes is an indication of pathological sleepiness. 
A number of diagnostic tests, including the Epworth Sleepiness Scale, are available to help ascertain the seriousness and likely causes of abnormal somnolence.
Somnolence is a symptom, so the treatment will depend on its cause. If the cause is the behavior and life choices of the patient (like working long hours, smoking, mental state), it may help to get plenty of rest and get rid of distractions. It’s also important to investigate what’s causing the problem, such as stress or anxiety, and take steps to reduce the feeling.
The dictionary definition of drowsiness at Wiktionary
^Mullington, Janet; Korth, Carsten; Hermann, Dirk M.; Orth, Armin; Galanos, Chris; Holsboer, Florian; Pollmächer, Thomas (2000). "Dose-dependent effects of endotoxin on human sleep". American Journal of Physiology. Regulatory, Integrative and Comparative Physiology. 278 (4): R947–55. doi:10.1152/ajpregu.2000.278.4.r947. PMID10749783.