{"record":{"id":"0b542f9e3013e114","repo":"faker-ruby/faker","slug":"tax-order-parameter-must-be-symbolizable","errorCode":null,"errorMessage":"tax_order parameter must be symbolizable","messagePattern":"tax_order parameter must be symbolizable","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"lib/faker/creature/bird.rb","lineNumber":146,"sourceCode":"\n        ##\n        # Produces a random common name for a bird\n        #\n        # @param [String | Symbol | nil] tax_order Tax\n        # @return [String]\n        # @raises TypeError If `tax_order` cannot be converted into a Symbol\n        # @raises ArgumentError If `tax_order` is not a valid taxonomic order\n        #\n        # @example\n        #   Faker::Creature::Bird.common_name #=> 'wren'\n        #\n        # @faker.version next\n        def common_name(tax_order = nil)\n          map = translate('faker.creature.bird.order_common_map')\n          if tax_order.nil?\n            sample(map.values.flatten).downcase\n          else\n            raise TypeError, 'tax_order parameter must be symbolizable' \\\n              unless tax_order.respond_to?(:to_sym)\n            raise ArgumentError, \"#{tax_order} is not a valid taxonomic order\" \\\n                                 unless map.keys.include?(tax_order.to_sym)\n\n            the_order = translate('faker.creature.bird.order_common_map')[tax_order.to_sym]\n            sample(the_order).downcase\n          end\n        end\n\n        ##\n        # Produces a random and plausible common name for a bird\n        #\n        # @return [String]\n        #\n        # @example\n        #   Faker::Creature::Bird.plausible_common_name #=> 'Hellinger's Wren'\n        #\n        # @faker.version next","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/faker-ruby/faker/blob/cca4184947e09fdd02afb8b89d25a9c8ebc7274e/lib/faker/creature/bird.rb#L128-L164","documentation":"Error \"tax_order parameter must be symbolizable\" thrown in faker-ruby/faker.","triggerScenarios":"Thrown at lib/faker/creature/bird.rb:146 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cca4184947e09fdd02afb8b89d25a9c8ebc7274e","analyzedAt":"2026-08-21T16:25:39.145Z","schemaVersion":2},"datasetVersion":"2026-08-21T18:17:14.833Z"}