The process by which an application for an intellectual property right such as a patent or trademark is considered by the patent or trademark office. There are usually two stages to the process, the preliminary examination where the application is examined to determine whether it is complete and correct, and the substantive examination, which determines as a legal matter whether the intellectual property right should be granted.