The relevant standard is called PS20, American Softwood Lumber Standard:
https://www.nist.gov/system/files/documents/2021/10/26/PS%20...
Note also that green wood will shrink as it dries, so the moisture content at the time of grading makes a difference.