Pattern based fact extraction library