Is any way how to build detection of duplicate addr:streetnumbers in mapCSS?

Hello,
in Czechia and Slovakia is unique house number tagging, conscription numbers and streets numbers, where are in Slovakia widely and in Czechia somewhere. And there are in Czechia provisional numbers. Street numbers are same rule like detection of duplicite house numbers validator in JOSM, they have to be unique related to street.
Is there any way how to build tester for detection duplicite addr:streetnumbers in MapCSS? I would to add it to rules Czech Republic Address System, which is file in MapCSS. Thanks!

I need to write check for duplicate addr:streetnumber in addr:street where is different addr:conscriptionnumber or addr:provisionalnumber. I wrote algoritm:

[addr:housenumber]=[addr:conscriptionnumber/addr:streetnumber].(CZ,SK)
[addr:housenumber]=[addr:provisionalnumber/addr:streetnumber].(CZ)
[addr:street][addr:streetnumber][addr:conscriptionnumber or addr:provisionalnumber] adresa_1, adresa_2
{if[addr:street+addr:streetnumber] in adresa_1 = in adresa_2 and [addr:conscriptionnumber or addr:provisionalnumber] in adresa_1 != in adresa_2;
throwWarning(“Duplicitní orientační číslo”);}

I guess it will not possible in MapCSS to compare tags between two elements, but in Python or Java will be able to. I’m not experienced in it, but I need to help for some bit learn how to do. Thanks!