local p = {}
local categoryLinksToEntitiesWithMissingLabel = '[[تصنيف:صفحات بها مهن بحاجة للتأنيث]]'; 

local function formatGenderLabelForEntityId( entit, isFemale  , options)
		local label = formatStatements( {property ='P2521', entityId = entit, noref ='true' ,langpref='ar'})

		if isFemale and isFemale =='Q6581072'  
			then
				return formatEntityId(entit, {label = ( label )})
			else 
				return formatEntityId(entit , options)
		end
end

function p.formatEntityWithGenderClaim( datavalue ,datatype , options)
	   	local value = datavalue.value
		local entityidpage = options.entityId
   		local entit = datavalue.value.id
		local isFemale =  formatStatements( {property ='P21', entityId = options.entityId , noref ='true' ,rank='all'
					, firstvalue='true',separator='',conjunction='',formatting ='raw'})


		local s = formatGenderLabelForEntityId( entit , isFemale  , options).value
	return s 

end
return p