Original: Legislation is regarded as one of the three main functions of government , which are often distingished under the doctrine of the separation of powers .
Simplified: Under the doctrine of separation of powers , the law-making function is primarily the responsibility of the legislature .