add permissionText and purposeText based on mapping from permission and purpose