Some words that are often used together are never written as one word. For other words you must think about their meanings to decide whether to write one word or two.