You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have cases where the input author list may be in upper or lower case, and we want to create a mixed-case version of it. Classic has a PERL module which is used to manipulate author names and offers this functionality. I link here to the relevant parts of the code for reference (private repo) and to some of the test cases that should be used as unit tests to base our python code on.
Because the mixing of case is dependent on the specific name fragment (last vs. first vs. suffix), the perl module creates an object for each name that needs to be parsed. So if we follow this approach the code may get more complicated, but the advantage is that we may be able to better deal with things such as teams and collaborations as well.
We have cases where the input author list may be in upper or lower case, and we want to create a mixed-case version of it. Classic has a PERL module which is used to manipulate author names and offers this functionality. I link here to the relevant parts of the code for reference (private repo) and to some of the test cases that should be used as unit tests to base our python code on.
Because the mixing of case is dependent on the specific name fragment (last vs. first vs. suffix), the perl module creates an object for each name that needs to be parsed. So if we follow this approach the code may get more complicated, but the advantage is that we may be able to better deal with things such as teams and collaborations as well.
Code:
https://github.com/adsabs/adsperl/blob/master/ADS/Authors/ADS-Authors-Names/lib/ADS/Authors/Names.pm#L286
https://github.com/adsabs/adsperl/blob/master/ADS/Authors/ADS-Authors-Names/lib/ADS/Authors/Names/Element.pm#L341
Tests:
https://github.com/adsabs/adsperl/blob/master/ADS/Authors/ADS-Authors-Names/t/names.t
https://github.com/adsabs/adsperl/blob/master/ADS/Authors/ADS-Authors-Names/t/parse_names.t
https://github.com/adsabs/adsperl/blob/master/ADS/Authors/ADS-Authors-Names/t/element.t
The text was updated successfully, but these errors were encountered: