(a) There shall be within the office of the attorney general, an office of ratepayer advocacy. The attorney general, through the office of ratepayer advocacy, may intervene, appear and participate in administrative, regulatory, or judicial proceedings on behalf of any group of consumers in connection with any matter involving rates, charges, prices and tariffs of an electric company, water company, gas company, generator, transmission company, telephone company and telegraph company doing business in the commonwealth and subject to the jurisdiction of the department of public utilities or the department of telecommunications and cable. In addition, the attorney general may intervene, appear and participate in federal energy regulatory commission or other federal energy proceedings on behalf of ratepayers in the commonwealth. The office of the ratepayer advocacy shall be under the direction of an assistant attorney general appointed under section 2. The assistant attorney general shall devote his full time and attention to the duties of the office.
For the purpose of such an intervention, appearance or participation, the attorney general may expend such funds as may be appropriated. These expenditures shall not exceed annually the amount assessed against such electric, water, gas, telephone and telegraph company under section 3 of chapter 24A, notwithstanding subsection (b). The attorney general shall not expend any of such funds if the expenditure shall conflict with his duties under section 3.