The ruling follows a similar decision denying patent registrations naming AI as creators