Safari's reader mode is based upon Arc90's Readability(the original, not current, one), which is Apache-licensed. Here's a PHP port of it. Some more searching will probably turn up various other languages. (You didn't really specify where you were asking about implementing.)