Currently find command allows for non-alphabetical symbols as arguments.
If a user makes a typo when using find nurse of patient or find patient of nurse, such as find nurse of pateint 1, it will taken as a find command with keyword argument of nurse of pateint 1, which will return an empty list.

This could cause the user to not notice their typo and think that patient 1 has no nurses regardless of if that's the case.
In addition, this makes it more difficult for the app to tell the user if they've made a formatting/input error when using find patient of nurse or find nurse of patient commands, since a wrong typo/format issue can be misinterpreted as a search keyword.
Some suggestions:
Perhaps you could try making command words joined together like findpatientofnurse or find_patient_of_nurse, or make use of the exiting prefix system, something like find n/KEYWORD, find nurse/PATIENT_INDEX, find patient/NURSE_INDEX
Currently find command allows for non-alphabetical symbols as arguments.
If a user makes a typo when using
find nurse of patientorfind patient of nurse, such asfind nurse of pateint 1, it will taken as afindcommand with keyword argument ofnurse of pateint 1, which will return an empty list.This could cause the user to not notice their typo and think that patient 1 has no nurses regardless of if that's the case.
In addition, this makes it more difficult for the app to tell the user if they've made a formatting/input error when using
find patient of nurseorfind nurse of patientcommands, since a wrong typo/format issue can be misinterpreted as a search keyword.Some suggestions:
Perhaps you could try making command words joined together like
findpatientofnurseorfind_patient_of_nurse, or make use of the exiting prefix system, something likefind n/KEYWORD,find nurse/PATIENT_INDEX,find patient/NURSE_INDEX