This paper presents a grammar and semantic corpus based similarity algorithm for natural language sentences. Natural language, in opposition to '' Artificial Language'', such as computer programming languages, is the language used by the general public for daily communication. Traditional Information Retrieval approaches, such as vector models, LSA, HAL, or even the ontology-based approaches that extend to include concept similarity comparison instead of co-occurrence terms/words, may not always determine the perfect matching while there is no obvious relation or concept overlap between two natural language sentences. This paper proposes a sentence similarity algorithm that takes advantage of corpus-based ontology and grammatical rules to overcome the addressed problems. Experiments on two famous benchmarks demonstrate that the proposed algorithm has a significant performance improvement in sentences/short-texts with arbitrary syntax and structure.