protected function _rules() {
		$rules = new Rules();

		$files = array(
			$this->config,
			Libraries::get('li3_quality', 'path') . '/config/syntax.json'
		);
		foreach ($files as $file) {
			if (file_exists($file)) {
				$this->out("Loading configuration file `{$file}`...");
				$config = json_decode(file_get_contents($file), true) + array(
					'name' => null,
					'rules' => array(),
					'options' => array()
				);
				break;
			}
		}

		foreach ($config['rules'] as $ruleName) {
			$class = Libraries::locate('rules.syntax', $ruleName);
			$rules->add(new $class());
		}
		if ($config['options']) {
			$rules->options($config['options']);
		}
		return $rules;
	}