|
It would be good idea, to be able to retrieve namedays of different religions, too.
The API would be easy.
For example:
my ($names) = $nd->getNames(7,24,2001, "Hungarian", "Hungarian-Evangelic", "Hungarian-Reformed", "H
+ungarian-Catholic", 'etc...');
Legend:
Hungarian = Hungarian common name dictionary (general name calendar)
Hungarian-Evangelic, Hungarian-Reformed, Hungarian-Catholic, etc. =
used as: Language-Religion
Returned hash reference example:
$names = {
'Hungarian' => [ 'pista', 'jozsi', 'anna' ],
'Hungarian-Evangelic' => [ 'pista'],
'Hungarian-Reformed' => [ 'anna'],
'Hungarian-Catholic' => [ 'pista', 'jozsi', 'ildiko' ]
};
Returned array reference example:
my (@names) = $nd->getNames(7,24,2001, "Hungarian", "Hungarian-Evangelic", "Hungarian-Reformed", "H
+ungarian-Catholic", 'etc...');
@names = ('pista', 'jozsi', 'anna', 'ildiko');
The double elements should be filtered out.
Native language religion query:
my (@names) = $nd->getNames(0,0,0, "Hungarian-Evangelic", "Hungarian-Reformed", "Hungarian-Catholic
+");
This should return the translated names of the input religions:
@names = ('Evangelikus', 'Reformatus', 'Katolikus', stb...);
Thanks,
Webmaster33
|