protected function conforms_to_compounds_policy( Token $token, $policy ) {
		return $this->check_policy(
			$token,
			$policy,
			self::ALLOW_COMPOUNDS,
			self::NO_COMPOUNDS,
			self::REQUIRE_COMPOUNDS,
			function( $value ) {
				return \preg_replace( '/-/S', '', $value );
			}
		);
	}
protected function conforms_to_compounds_policy( Token $token, $policy ) {
		return $this->check_policy(
			$token,
			$policy,
			self::ALLOW_COMPOUNDS,
			self::NO_COMPOUNDS,
			self::REQUIRE_COMPOUNDS,
			function( $value ) {
				return \preg_replace( '/-/S', '', $value );
			}
		);
	}
protected function conforms_to_compounds_policy ( Token $ token , $ policy ) { return $ this -> check_policy ( $ token , $ policy , self :: ALLOW_COMPOUNDS , self :: NO_COMPOUNDS , self :: REQUIRE_COMPOUNDS , function ( $ value ) { return \ preg_replace ( '/-/S' , '' , $ value ) ; } ) ; }
Check if the value of the token conforms to the given policy for compound words.

@param  Token $token  Required.
@param  int   $policy Either ALLOW_COMPOUNDS, REQUIRE_COMPOUNDS or NO_COMPOUNDS.

@return bool
Check if the value of the token conforms to the given policy for compound words .