![Classification of Standard Industry](http://i.imgur.com/x1FGZDQ.png) The North American Industry Classification System (NAICS) is used by business and government to classify business establishments according to type of economic activity (process of production) in Canada, Mexico and the United States. It has largely replaced the older Standard Industrial Classification (SIC) system; however, certain government departments and agencies, such as the U.S. Securities and Exchange Commission (SEC), still use the SIC codes. CSI helps you look those codes up. # Installation This is a Ruby gem, so you'll need a little Ruby-fu to get it working. If you're not familiar with Ruby, there are CSV copies of the data sets available too that you can load into a spreadsheet, database or parse in your favorite programming language. #### For Rubyists: ``` gem install csi ``` Or add this to your `Gemfile`: ``` gem 'csi', '~> 0.1.0' ``` #### For everyone else: * SIC codes in [CSV](lib/data/sic/sic-code-lookup-2000.csv) or [TOML](lib/data/sic/sic-code-lookup-2000.toml) * NAICS codes in [CSV](lib/data/naics/naics-code-lookup-2012.csv) or [TOML](lib/data/naics/naics-code-lookup-2012.toml) # Usage ```ruby CSI::lookup_naics 336992 # => Military Armored Vehicle, Tank, and Tank Component Manufacturing CSI::lookup_naics 611310 # => Colleges, Universities, and Professional Schools CSI::lookup_naics 62 # => Health Care and Social Assistance CSI::lookup_sic 6021 # => National Commercial Banks ``` # NAICS vs SIC
NAICS | SIC | ||
---|---|---|---|
2-digit | Sector | Division | Letter |
3-digit | Subsector | Major Group | 2-digit |
4-digit | Industry Group | Industry Group | 3-digit |
5-digit | NAICS Industry | Industry | 4-digit |
6-digit | National | N/A | N/A |